Struct uefi::proto::console::serial::IoMode[][src]

#[repr(C)]
pub struct IoMode { pub control_mask: ControlBits, pub timeout: u32, pub baud_rate: u64, pub receive_fifo_depth: u32, pub data_bits: u32, pub parity: Parity, pub stop_bits: StopBits, }
Expand description

Structure representing the device’s current parameters.

The default values for all UART-like devices is:

  • 115,200 baud
  • 1 byte receive FIFO
  • 1’000’000 microsecond timeout
  • no parity
  • 8 data bits
  • 1 stop bit

The software is responsible for flow control.

Fields

control_mask: ControlBits

Bitmask of the control bits that this device supports.

timeout: u32

If applicable, the number of microseconds to wait before assuming an operation timed out.

baud_rate: u64

Device’s baud rate, or 0 if unknown.

receive_fifo_depth: u32

Size in character’s of the device’s buffer.

data_bits: u32

Number of data bits in each character.

parity: Parity

If applicable, the parity that is computed or checked for each character.

stop_bits: StopBits

If applicable, the number of stop bits per character.

Trait Implementations

impl Clone for IoMode[src]

fn clone(&self) -> IoMode[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for IoMode[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Copy for IoMode[src]

Auto Trait Implementations

impl Send for IoMode

impl Sync for IoMode

impl Unpin for IoMode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.