Enum tokio_serial::ClearBuffer
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
impl Clone for ClearBuffer
impl Clone for ClearBuffer
fn clone(&self) -> ClearBuffer
fn clone(&self) -> ClearBuffer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for ClearBuffer
impl Debug for ClearBuffer
impl PartialEq<ClearBuffer> for ClearBuffer
impl PartialEq<ClearBuffer> for ClearBuffer
fn eq(&self, other: &ClearBuffer) -> bool
fn eq(&self, other: &ClearBuffer) -> bool
impl Copy for ClearBuffer
impl Eq for ClearBuffer
impl StructuralEq for ClearBuffer
impl StructuralPartialEq for ClearBuffer
Auto Trait Implementations
impl RefUnwindSafe for ClearBuffer
impl Send for ClearBuffer
impl Sync for ClearBuffer
impl Unpin for ClearBuffer
impl UnwindSafe for ClearBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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