Enum nrf52840_hal::target::usbd::eventcause::USBWUALLOWEDR
source · pub enum USBWUALLOWEDR {
NOTALLOWED,
ALLOWED,
}
Expand description
Possible values of the field USBWUALLOWED
Variants
NOTALLOWED
Wake up not allowed
ALLOWED
Wake up allowed
Implementations
sourceimpl USBWUALLOWEDR
impl USBWUALLOWEDR
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
sourcepub fn is_not_allowed(&self) -> bool
pub fn is_not_allowed(&self) -> bool
Checks if the value of the field is NOTALLOWED
sourcepub fn is_allowed(&self) -> bool
pub fn is_allowed(&self) -> bool
Checks if the value of the field is ALLOWED
Trait Implementations
sourceimpl Clone for USBWUALLOWEDR
impl Clone for USBWUALLOWEDR
sourcefn clone(&self) -> USBWUALLOWEDR
fn clone(&self) -> USBWUALLOWEDR
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for USBWUALLOWEDR
impl Debug for USBWUALLOWEDR
sourceimpl PartialEq<USBWUALLOWEDR> for USBWUALLOWEDR
impl PartialEq<USBWUALLOWEDR> for USBWUALLOWEDR
sourcefn eq(&self, other: &USBWUALLOWEDR) -> bool
fn eq(&self, other: &USBWUALLOWEDR) -> bool
impl Copy for USBWUALLOWEDR
impl StructuralPartialEq for USBWUALLOWEDR
Auto Trait Implementations
impl RefUnwindSafe for USBWUALLOWEDR
impl Send for USBWUALLOWEDR
impl Sync for USBWUALLOWEDR
impl Unpin for USBWUALLOWEDR
impl UnwindSafe for USBWUALLOWEDR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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