#[non_exhaustive]#[repr(i32)]pub enum FlushArg {
TCIFLUSH = 0,
TCOFLUSH = 1,
TCIOFLUSH = 2,
}
Expand description
Specify a combination of the input and output buffers to flush
Used as an argument to tcflush()
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TCIFLUSH = 0
Flush data that was received but not read
TCOFLUSH = 1
Flush data written but not transmitted
TCIOFLUSH = 2
Flush both received data not read and written data not transmitted
Trait Implementations§
Source§impl Ord for FlushArg
impl Ord for FlushArg
Source§impl PartialOrd for FlushArg
impl PartialOrd for FlushArg
impl Copy for FlushArg
impl Eq for FlushArg
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 UnwindSafe for FlushArg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)