pub enum ButtonState {
Released,
Pressed,
}
Expand description
The state of the button.
Variants
Released
Pressed
Implementations
sourceimpl ButtonState
impl ButtonState
sourcepub fn from_id(input: &u8) -> Result<ButtonState, ButtonParseError>
pub fn from_id(input: &u8) -> Result<ButtonState, ButtonParseError>
Maps the ID in the protocol to the ButtonState
.
Trait Implementations
sourceimpl Debug for ButtonState
impl Debug for ButtonState
sourceimpl Format for ButtonState
impl Format for ButtonState
sourceimpl PartialEq<ButtonState> for ButtonState
impl PartialEq<ButtonState> for ButtonState
sourcefn eq(&self, other: &ButtonState) -> bool
fn eq(&self, other: &ButtonState) -> bool
impl Eq for ButtonState
impl StructuralEq for ButtonState
impl StructuralPartialEq for ButtonState
Auto Trait Implementations
impl RefUnwindSafe for ButtonState
impl Send for ButtonState
impl Sync for ButtonState
impl Unpin for ButtonState
impl UnwindSafe for ButtonState
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