pub enum SynchronousMode {
Master(BaudRate),
Slave,
}
Variants§
Master(BaudRate)
Master mode - I will generate the clock for everyone
Slave
Slave, I will - use the clock generated by the master
Trait Implementations§
source§impl Clone for SynchronousMode
impl Clone for SynchronousMode
source§fn clone(&self) -> SynchronousMode
fn clone(&self) -> SynchronousMode
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 PartialEq for SynchronousMode
impl PartialEq for SynchronousMode
source§fn eq(&self, other: &SynchronousMode) -> bool
fn eq(&self, other: &SynchronousMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for SynchronousMode
impl Persist for SynchronousMode
source§fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
Load an instance of this Enum from the given reader
source§fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
Save an instance of this Enum to the given writer.
source§fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
Take the given reader and use it to load an instance of this type.
source§impl uDebug for SynchronousMode
impl uDebug for SynchronousMode
impl Copy for SynchronousMode
impl Eq for SynchronousMode
impl StructuralPartialEq for SynchronousMode
Auto Trait Implementations§
impl Freeze for SynchronousMode
impl RefUnwindSafe for SynchronousMode
impl Send for SynchronousMode
impl Sync for SynchronousMode
impl Unpin for SynchronousMode
impl UnwindSafe for SynchronousMode
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