#[repr(u16)]
pub enum Blink {
None,
Slow,
Rapid,
}
Expand description
Specify whether you want to slowly or rapidly annoy your users
Variants
None
Slow
Rapid
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Blink
impl<'de> Deserialize<'de> for Blink
sourcefn 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
sourceimpl FromDynamic for Blink
impl FromDynamic for Blink
fn from_dynamic(
value: &Value,
options: FromDynamicOptions
) -> Result<Self, Error>
sourceimpl 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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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