pub struct PortSettings {
pub baud_rate: BaudRate,
pub char_size: CharSize,
pub parity: Parity,
pub stop_bits: StopBits,
pub flow_control: FlowControl,
}Expand description
A device-indepenent implementation of serial port settings.
Fields§
§baud_rate: BaudRateBaud rate.
char_size: CharSizeCharacter size.
parity: ParityParity checking mode.
stop_bits: StopBitsNumber of stop bits.
flow_control: FlowControlFlow control mode.
Trait Implementations§
Source§impl Clone for PortSettings
impl Clone for PortSettings
Source§fn clone(&self) -> PortSettings
fn clone(&self) -> PortSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PortSettings
Source§impl Debug for PortSettings
impl Debug for PortSettings
impl Eq for PortSettings
Source§impl PartialEq for PortSettings
impl PartialEq for PortSettings
Source§fn eq(&self, other: &PortSettings) -> bool
fn eq(&self, other: &PortSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SerialPortSettings for PortSettings
impl SerialPortSettings for PortSettings
Source§fn flow_control(&self) -> Option<FlowControl>
fn flow_control(&self) -> Option<FlowControl>
Returns the flow control mode. Read more
Source§fn set_char_size(&mut self, char_size: CharSize)
fn set_char_size(&mut self, char_size: CharSize)
Sets the character size.
Source§fn set_parity(&mut self, parity: Parity)
fn set_parity(&mut self, parity: Parity)
Sets the parity-checking mode.
Source§fn set_stop_bits(&mut self, stop_bits: StopBits)
fn set_stop_bits(&mut self, stop_bits: StopBits)
Sets the number of stop bits.
Source§fn set_flow_control(&mut self, flow_control: FlowControl)
fn set_flow_control(&mut self, flow_control: FlowControl)
Sets the flow control mode.
impl StructuralPartialEq for PortSettings
Auto Trait Implementations§
impl Freeze for PortSettings
impl RefUnwindSafe for PortSettings
impl Send for PortSettings
impl Sync for PortSettings
impl Unpin for PortSettings
impl UnsafeUnpin for PortSettings
impl UnwindSafe for PortSettings
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