Enum tokio_serial::ClearBuffer
source · pub enum ClearBuffer {
Input,
Output,
All,
}
Expand description
Specifies which buffer or buffers to purge when calling clear
Variants§
Input
Specify to clear data received but not read
Output
Specify to clear data written but not yet transmitted
All
Specify to clear both data received and data not yet transmitted
Trait Implementations§
source§impl Clone for ClearBuffer
impl Clone for ClearBuffer
source§fn clone(&self) -> ClearBuffer
fn clone(&self) -> ClearBuffer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClearBuffer
impl Debug for ClearBuffer
source§impl PartialEq for ClearBuffer
impl PartialEq for ClearBuffer
source§fn eq(&self, other: &ClearBuffer) -> bool
fn eq(&self, other: &ClearBuffer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClearBuffer
impl Eq for ClearBuffer
impl StructuralPartialEq for ClearBuffer
Auto Trait Implementations§
impl Freeze for ClearBuffer
impl RefUnwindSafe for ClearBuffer
impl Send for ClearBuffer
impl Sync for ClearBuffer
impl Unpin for ClearBuffer
impl UnwindSafe for ClearBuffer
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