Enum WatchdogMask
#[repr(u8)]pub enum WatchdogMask {
IrqEnable = 0,
IrqDisable = 1,
}Variants§
IrqEnable = 0
Do not mask the watchdog interrupt i.e. interrupt is generated.
IrqDisable = 1
Mask the watchdog interrupt i.e. no interrupt is generated.
Implementations§
§impl WatchdogMask
impl WatchdogMask
pub const fn from_bits(val: u8) -> WatchdogMask
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for WatchdogMask
impl Clone for WatchdogMask
§fn clone(&self) -> WatchdogMask
fn clone(&self) -> WatchdogMask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WatchdogMask
§impl Debug for WatchdogMask
impl Debug for WatchdogMask
impl Eq for WatchdogMask
§impl From<u8> for WatchdogMask
impl From<u8> for WatchdogMask
§fn from(val: u8) -> WatchdogMask
fn from(val: u8) -> WatchdogMask
Converts to this type from the input type.
§impl Ord for WatchdogMask
impl Ord for WatchdogMask
§fn cmp(&self, other: &WatchdogMask) -> Ordering
fn cmp(&self, other: &WatchdogMask) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for WatchdogMask
impl PartialEq for WatchdogMask
§impl PartialOrd for WatchdogMask
impl PartialOrd for WatchdogMask
impl StructuralPartialEq for WatchdogMask
Auto Trait Implementations§
impl Freeze for WatchdogMask
impl RefUnwindSafe for WatchdogMask
impl Send for WatchdogMask
impl Sync for WatchdogMask
impl Unpin for WatchdogMask
impl UnsafeUnpin for WatchdogMask
impl UnwindSafe for WatchdogMask
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