#[repr(u8)]pub enum Blink {
None = 0,
Slow = 1,
Rapid = 2,
}
Expand description
Specify whether you want to slowly or rapidly annoy your users
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Blink
impl<'de> Deserialize<'de> for Blink
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 FromDynamic for Blink
impl FromDynamic for Blink
fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>
source§impl Into<bool> for Blink
impl Into<bool> for Blink
Allow converting to boolean; true means some kind of blink, false means none. This is used in some generic code to determine whether to enable blink.
source§impl PartialEq for Blink
impl PartialEq for Blink
impl Copy for Blink
impl Eq for Blink
impl StructuralEq for Blink
impl StructuralPartialEq for Blink
Auto Trait Implementations§
impl RefUnwindSafe for Blink
impl Send for Blink
impl Sync for Blink
impl Unpin for Blink
impl UnwindSafe for Blink
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