Enum serial2::FlowControl
source · pub enum FlowControl {
None,
XonXoff,
RtsCts,
}
Expand description
The type of flow control for a serial port.
Variants§
None
Do not perform any automatic flow control.
XonXoff
Perform XON/XOFF flow control.
This is also sometimes referred to as “software flow control”.
RtsCts
Perform RTS/CTS flow control.
This is also sometimes referred to as “hardware flow control”.
Trait Implementations§
source§impl Clone for FlowControl
impl Clone for FlowControl
source§fn clone(&self) -> FlowControl
fn clone(&self) -> FlowControl
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 FlowControl
impl Debug for FlowControl
source§impl Ord for FlowControl
impl Ord for FlowControl
source§fn cmp(&self, other: &FlowControl) -> Ordering
fn cmp(&self, other: &FlowControl) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FlowControl
impl PartialEq for FlowControl
source§fn eq(&self, other: &FlowControl) -> bool
fn eq(&self, other: &FlowControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FlowControl
impl PartialOrd for FlowControl
source§fn partial_cmp(&self, other: &FlowControl) -> Option<Ordering>
fn partial_cmp(&self, other: &FlowControl) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FlowControl
impl Eq for FlowControl
impl StructuralEq for FlowControl
impl StructuralPartialEq for FlowControl
Auto Trait Implementations§
impl RefUnwindSafe for FlowControl
impl Send for FlowControl
impl Sync for FlowControl
impl Unpin for FlowControl
impl UnwindSafe for FlowControl
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