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: 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§
Source§impl Clone for PortSettings
impl Clone for PortSettings
Source§fn clone(&self) -> PortSettings
fn clone(&self) -> PortSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PortSettings
impl Debug for PortSettings
Source§impl PartialEq for PortSettings
impl PartialEq for PortSettings
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 Copy for PortSettings
impl Eq for PortSettings
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)