Enum serial_thread::Mode
source · pub enum Mode {
Master,
Slave,
Sniff,
Stop,
}
Expand description
Defines the operating modes of the SerialInterface.
Variants§
Master
Operating as a master in a master-slave configuration.
Slave
Operating as a slave in a master-slave configuration.
Sniff
Listening on the serial line without interfering.
Stop
Stopped or inactive state.
Trait Implementations§
source§impl PartialEq for Mode
impl PartialEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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