Struct serial_unix::TTYSettings
[−]
[src]
pub struct TTYSettings { /* fields omitted */ }
Serial port settings for TTY devices.
Trait Implementations
impl Debug for TTYSettings
[src]
impl Copy for TTYSettings
[src]
impl Clone for TTYSettings
[src]
fn clone(&self) -> TTYSettings
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 SerialPortSettings for TTYSettings
[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.