Struct riscv::interrupt::CriticalSection
source · [−]pub struct CriticalSection { /* private fields */ }
Expand description
Critical section token
Indicates that you are executing code within a critical section
Implementations
sourceimpl CriticalSection
impl CriticalSection
sourcepub unsafe fn new() -> CriticalSection
pub unsafe fn new() -> CriticalSection
Creates a critical section token
This method is meant to be used to create safe abstractions rather than meant to be directly used in applications.
Auto Trait Implementations
impl RefUnwindSafe for CriticalSection
impl Send for CriticalSection
impl Sync for CriticalSection
impl Unpin for CriticalSection
impl UnwindSafe for CriticalSection
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