#[non_exhaustive]pub struct Type;
Expand description
Contains constants that describes how an interrupt can be triggered.
It is tagged with non_exhaustive
to prevent users from instantiating it.
Implementations
sourceimpl Type
impl Type
sourcepub const EDGE_RISING: u32 = 1u32
pub const EDGE_RISING: u32 = 1u32
The interrupt is triggered when the signal goes from low to high.
sourcepub const EDGE_FALLING: u32 = 2u32
pub const EDGE_FALLING: u32 = 2u32
The interrupt is triggered when the signal goes from high to low.
sourcepub const EDGE_BOTH: u32 = 3u32
pub const EDGE_BOTH: u32 = 3u32
The interrupt is triggered when the signal goes from low to high and when it goes to high to low.
sourcepub const LEVEL_HIGH: u32 = 4u32
pub const LEVEL_HIGH: u32 = 4u32
The interrupt is triggered while the signal is held high.
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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