Struct CriticalSection
pub struct CriticalSection { /* private fields */ }
Expand description
Critical section token
Indicates that you are executing code within a critical section
Implementations§
§impl CriticalSection
impl CriticalSection
pub 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 Freeze for CriticalSection
impl RefUnwindSafe for CriticalSection
impl Send for CriticalSection
impl Sync for CriticalSection
impl Unpin for CriticalSection
impl UnwindSafe for CriticalSection
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