#[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,
}
Fields§
§revision: u32
§reset: unsafe extern "efiapi" fn(_: *mut Self) -> Status
§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
§set_control_bits: unsafe extern "efiapi" fn(_: *mut Self, _: ControlBits) -> Status
§get_control_bits: unsafe extern "efiapi" fn(_: *const Self, _: *mut ControlBits) -> Status
§write: unsafe extern "efiapi" fn(_: *mut Self, _: *mut usize, _: *const u8) -> Status
§read: unsafe extern "efiapi" fn(_: *mut Self, _: *mut usize, _: *mut u8) -> Status
§mode: *const SerialIoMode
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SerialIoProtocol
impl RefUnwindSafe for SerialIoProtocol
impl !Send for SerialIoProtocol
impl !Sync for SerialIoProtocol
impl Unpin for SerialIoProtocol
impl UnwindSafe for SerialIoProtocol
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more