pub enum SleepState {
Awake,
Drowsy {
timer: f32,
},
Asleep,
}Variants§
Trait Implementations§
Source§impl Clone for SleepState
impl Clone for SleepState
Source§fn clone(&self) -> SleepState
fn clone(&self) -> SleepState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SleepState
impl Debug for SleepState
Source§impl PartialEq for SleepState
impl PartialEq for SleepState
impl Copy for SleepState
impl StructuralPartialEq for SleepState
Auto Trait Implementations§
impl Freeze for SleepState
impl RefUnwindSafe for SleepState
impl Send for SleepState
impl Sync for SleepState
impl Unpin for SleepState
impl UnsafeUnpin for SleepState
impl UnwindSafe for SleepState
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