Struct serial::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: BaudRate

Baud rate.

char_size: CharSize

Character size.

parity: Parity

Parity checking mode.

stop_bits: StopBits

Number of stop bits.

flow_control: FlowControl

Flow control mode.

Trait Implementations

impl Eq for PortSettings
[src]

impl PartialEq for PortSettings
[src]

fn eq(&self, __arg_0: &PortSettings) -> bool

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

fn ne(&self, __arg_0: &PortSettings) -> bool

This method tests for !=.

impl Clone for PortSettings
[src]

fn clone(&self) -> PortSettings

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for PortSettings
[src]

impl Debug for PortSettings
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for PortSettings
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl SerialPortSettings for PortSettings
[src]

fn baud_rate(&self) -> Option<BaudRate>

Returns the current baud rate. Read more

fn char_size(&self) -> Option<CharSize>

Returns the character size. Read more

fn parity(&self) -> Option<Parity>

Returns the parity-checking mode. Read more

fn stop_bits(&self) -> Option<StopBits>

Returns the number of stop bits. Read more

fn flow_control(&self) -> Option<FlowControl>

Returns the flow control mode. Read more

fn set_baud_rate(&mut self, baud_rate: BaudRate) -> Result<()>

Sets the baud rate. Read more

fn set_char_size(&mut self, char_size: CharSize)

Sets the character size.

fn set_parity(&mut self, parity: Parity)

Sets the parity-checking mode.

fn set_stop_bits(&mut self, stop_bits: StopBits)

Sets the number of stop bits.

fn set_flow_control(&mut self, flow_control: FlowControl)

Sets the flow control mode.