pub enum SwitchState {
None,
Push,
Left,
Right,
}Expand description
Switch states for obniz board switch
Variants§
Trait Implementations§
Source§impl Clone for SwitchState
impl Clone for SwitchState
Source§impl Debug for SwitchState
impl Debug for SwitchState
Source§impl<'de> Deserialize<'de> for SwitchState
impl<'de> Deserialize<'de> for SwitchState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SwitchState
impl Display for SwitchState
Source§impl PartialEq for SwitchState
impl PartialEq for SwitchState
Source§impl Serialize for SwitchState
impl Serialize for SwitchState
impl StructuralPartialEq for SwitchState
Auto Trait Implementations§
impl Freeze for SwitchState
impl RefUnwindSafe for SwitchState
impl Send for SwitchState
impl Sync for SwitchState
impl Unpin for SwitchState
impl UnsafeUnpin for SwitchState
impl UnwindSafe for SwitchState
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