Struct serial_core::PortSettings [] [src]

pub struct PortSettings {
    pub baud_rate: BaudRate,
    pub char_size: CharSize,
    pub parity: Parity,
    pub stop_bits: StopBits,
    pub flow_control: FlowControl,
}

A device-indepenent implementation of serial port settings.

Fields

Baud rate.

Character size.

Parity checking mode.

Number of stop bits.

Flow control mode.

Trait Implementations

impl Debug for PortSettings
[src]

Formats the value using the given formatter.

impl Copy for PortSettings
[src]

impl Clone for PortSettings
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for PortSettings
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PortSettings
[src]

impl SerialPortSettings for PortSettings
[src]

Returns the current baud rate. Read more

Returns the character size. Read more

Returns the parity-checking mode. Read more

Returns the number of stop bits. Read more

Returns the flow control mode. Read more

Sets the baud rate. Read more

Sets the character size.

Sets the parity-checking mode.

Sets the number of stop bits.

Sets the flow control mode.