pub struct POLLMODE_R(/* private fields */);Expand description
Field POLLMODE reader - Mode of operation. May only change from 0 to another value. So, if 2 or 3, must be changed to 0 1st. Any attempt to go from non-0 to non-0 will result in 0 anyway.
Implementations§
Source§impl POLLMODE_R
impl POLLMODE_R
Sourcepub fn variant(&self) -> POLLMODE_A
pub fn variant(&self) -> POLLMODE_A
Get enumerated values variant
Sourcepub fn is_poll_now(&self) -> bool
pub fn is_poll_now(&self) -> bool
Checks if the value of the field is POLL_NOW
Sourcepub fn is_low_power_mode(&self) -> bool
pub fn is_low_power_mode(&self) -> bool
Checks if the value of the field is LOW_POWER_MODE
Methods from Deref<Target = FieldReader<u8, POLLMODE_A>>§
Trait Implementations§
Source§impl Deref for POLLMODE_R
impl Deref for POLLMODE_R
Source§type Target = FieldReader<u8, POLLMODE_A>
type Target = FieldReader<u8, POLLMODE_A>
The resulting type after dereferencing.
Auto Trait Implementations§
impl Freeze for POLLMODE_R
impl RefUnwindSafe for POLLMODE_R
impl Send for POLLMODE_R
impl Sync for POLLMODE_R
impl Unpin for POLLMODE_R
impl UnwindSafe for POLLMODE_R
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