Struct Sleepstate
#[repr(transparent)]pub struct Sleepstate(pub u32);
Expand description
Sleep state during automatic collision resolution
Tuple Fields§
§0: u32
Implementations§
§impl Sleepstate
impl Sleepstate
pub const fn sleepstate(&self) -> Sleepstate
pub const fn sleepstate(&self) -> Sleepstate
Reflects the sleep state during automatic collision resolution. Set to IDLE by a GOIDLE task. Set to SLEEP_A when a valid SLEEP_REQ frame is received or by a GOSLEEP task.
pub fn set_sleepstate(&mut self, val: Sleepstate)
pub fn set_sleepstate(&mut self, val: Sleepstate)
Reflects the sleep state during automatic collision resolution. Set to IDLE by a GOIDLE task. Set to SLEEP_A when a valid SLEEP_REQ frame is received or by a GOSLEEP task.
Trait Implementations§
§impl Clone for Sleepstate
impl Clone for Sleepstate
§fn clone(&self) -> Sleepstate
fn clone(&self) -> Sleepstate
Returns a copy 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 more§impl Default for Sleepstate
impl Default for Sleepstate
§fn default() -> Sleepstate
fn default() -> Sleepstate
Returns the “default value” for a type. Read more
§impl PartialEq for Sleepstate
impl PartialEq for Sleepstate
impl Copy for Sleepstate
impl Eq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)