[][src]Struct cortex_m::interrupt::CriticalSection

pub struct CriticalSection { /* fields omitted */ }

Critical section token

Indicates that you are executing code within a critical section

Methods

impl CriticalSection[src]

pub unsafe fn new() -> CriticalSection[src]

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 Send for CriticalSection

impl Sync for CriticalSection

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self