Struct SerialIoProtocol
Source #[repr(C)]
pub struct SerialIoProtocol {
pub revision: u32,
pub reset: unsafe extern "efiapi" fn(_: *mut Self) -> Status,
pub set_attributes: unsafe extern "efiapi" fn(_: *const Self, baud_rate: u64, receive_fifo_depth: u32, timeout: u32, parity: Parity, data_bits: u8, stop_bits_type: StopBits) -> Status,
pub set_control_bits: unsafe extern "efiapi" fn(_: *mut Self, _: ControlBits) -> Status,
pub get_control_bits: unsafe extern "efiapi" fn(_: *const Self, _: *mut ControlBits) -> Status,
pub write: unsafe extern "efiapi" fn(_: *mut Self, _: *mut usize, _: *const u8) -> Status,
pub read: unsafe extern "efiapi" fn(_: *mut Self, _: *mut usize, _: *mut u8) -> Status,
pub mode: *const SerialIoMode,
}
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.