Enum SetArg
#[repr(i32)]
#[non_exhaustive]
pub enum SetArg
Specify when a port configuration change should occur.
Used as an argument to tcsetattr()
Variants
-
TCSANOW = libc::TCSANOW The change will occur immediately
-
TCSADRAIN = libc::TCSADRAIN The change occurs after all output has been written
-
TCSAFLUSH = libc::TCSAFLUSH Same as
TCSADRAIN, but will also flush the input buffer
Trait Implementations
impl Clone for SetArg
fn clone(&self) -> Self
impl Copy for SetArg
impl Debug for SetArg
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for SetArg
impl Hash for SetArg
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for SetArg
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for SetArg
fn eq(&self, other: &Self) -> bool
impl PartialOrd for SetArg
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for SetArg
Auto Trait Implementations
impl Freeze for SetArg
impl RefUnwindSafe for SetArg
impl Send for SetArg
impl Sync for SetArg
impl Unpin for SetArg
impl UnsafeUnpin for SetArg
impl UnwindSafe for SetArg
Blanket Implementations
impl<T> Any for SetArg
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SetArg
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SetArg
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SetArg
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SetArg
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for SetArg
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for SetArg
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SetArg
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SetArg
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>