pub enum State {
Running,
Disabled,
Error(Error),
}
Expand description
Defines the possible states of the peripheral
Variants
Running
The peripheral is enabled and functions normally
Disabled
The peripheral is disabled
Error(Error)
There was an error while executing a request (sending or receiving)
Trait Implementations
sourceimpl Eq for State
impl Eq for State
fn assert_receiver_is_total_eq(&self)
impl Copy for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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