#[repr(i32)]
pub enum SetArg {
TCSANOW,
TCSADRAIN,
TCSAFLUSH,
}
Expand description
Specify when a port configuration change should occur.
Used as an argument to tcsetattr()
Variants
TCSANOW
The change will occur immediately
TCSADRAIN
The change occurs after all output has been written
TCSAFLUSH
Same as TCSADRAIN
, but will also flush the input buffer
Trait Implementations
sourceimpl Ord for SetArg
impl Ord for SetArg
sourceimpl PartialOrd<SetArg> for SetArg
impl PartialOrd<SetArg> for SetArg
sourcefn partial_cmp(&self, other: &SetArg) -> Option<Ordering>
fn partial_cmp(&self, other: &SetArg) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl Copy for SetArg
impl Eq for SetArg
impl StructuralEq for SetArg
impl StructuralPartialEq for SetArg
Auto Trait Implementations
impl RefUnwindSafe for SetArg
impl Send for SetArg
impl Sync for SetArg
impl Unpin for SetArg
impl UnwindSafe for SetArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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