pub enum SlaveDirection {
Receive,
Transmit,
}Variants§
Receive
The master writes and the slave receives.
Transmit
The master reads and the slave transmits.
Trait Implementations§
Source§impl Clone for SlaveDirection
impl Clone for SlaveDirection
Source§fn clone(&self) -> SlaveDirection
fn clone(&self) -> SlaveDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SlaveDirection
Source§impl Debug for SlaveDirection
impl Debug for SlaveDirection
impl Eq for SlaveDirection
Source§impl PartialEq for SlaveDirection
impl PartialEq for SlaveDirection
Source§fn eq(&self, other: &SlaveDirection) -> bool
fn eq(&self, other: &SlaveDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SlaveDirection
Auto Trait Implementations§
impl Freeze for SlaveDirection
impl RefUnwindSafe for SlaveDirection
impl Send for SlaveDirection
impl Sync for SlaveDirection
impl Unpin for SlaveDirection
impl UnsafeUnpin for SlaveDirection
impl UnwindSafe for SlaveDirection
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