pub struct ExceptionLock<T> { /* private fields */ }
Expand description
Allows access to the given value only while exceptions are masked, allowing it to be shared between exception contexts on a given core.
Implementations§
Source§impl<T> ExceptionLock<T>
impl<T> ExceptionLock<T>
Source§impl<T> ExceptionLock<RefCell<T>>
impl<T> ExceptionLock<RefCell<T>>
Sourcepub fn borrow_mut<'cs>(&'cs self, token: ExceptionFree<'cs>) -> RefMut<'cs, T>
pub fn borrow_mut<'cs>(&'cs self, token: ExceptionFree<'cs>) -> RefMut<'cs, T>
Gets a unique reference to the contents of the RefCell
, given a token proving that
exceptions are currently masked.
Auto Trait Implementations§
impl<T> Freeze for ExceptionLock<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExceptionLock<T>where
T: RefUnwindSafe,
impl<T> Send for ExceptionLock<T>where
T: Send,
impl<T> Sync for ExceptionLock<T>where
T: Sync,
impl<T> Unpin for ExceptionLock<T>where
T: Unpin,
impl<T> UnwindSafe for ExceptionLock<T>where
T: UnwindSafe,
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