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
sourceimpl Clone for FlowControl
impl Clone for FlowControl
sourcefn clone(&self) -> FlowControl
fn clone(&self) -> FlowControl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FlowControl
impl Debug for FlowControl
sourceimpl Ord for FlowControl
impl Ord for FlowControl
sourcefn cmp(&self, other: &FlowControl) -> Ordering
fn cmp(&self, other: &FlowControl) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FlowControl> for FlowControl
impl PartialEq<FlowControl> for FlowControl
sourcefn eq(&self, other: &FlowControl) -> bool
fn eq(&self, other: &FlowControl) -> bool
sourceimpl PartialOrd<FlowControl> for FlowControl
impl PartialOrd<FlowControl> for FlowControl
sourcefn partial_cmp(&self, other: &FlowControl) -> Option<Ordering>
fn partial_cmp(&self, other: &FlowControl) -> Option<Ordering>
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more