Enum FlushArg
#[repr(i32)]
#[non_exhaustive]
pub enum FlushArg
Specify a combination of the input and output buffers to flush
Used as an argument to tcflush().
Variants
-
TCIFLUSH = libc::TCIFLUSH Flush data that was received but not read
-
TCOFLUSH = libc::TCOFLUSH Flush data written but not transmitted
-
TCIOFLUSH = libc::TCIOFLUSH Flush both received data not read and written data not transmitted
Trait Implementations
impl Clone for FlushArg
fn clone(&self) -> Self
impl Copy for FlushArg
impl Debug for FlushArg
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for FlushArg
impl Hash for FlushArg
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for FlushArg
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for FlushArg
fn eq(&self, other: &Self) -> bool
impl PartialOrd for FlushArg
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for FlushArg
Auto Trait Implementations
impl Freeze for FlushArg
impl RefUnwindSafe for FlushArg
impl Send for FlushArg
impl Sync for FlushArg
impl Unpin for FlushArg
impl UnsafeUnpin for FlushArg
impl UnwindSafe for FlushArg
Blanket Implementations
impl<T> Any for FlushArg
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FlushArg
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FlushArg
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FlushArg
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FlushArg
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for FlushArg
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FlushArg
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 FlushArg
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FlushArg
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>