pub struct GuardMut<'a, T>(/* private fields */);Expand description
Mutable Guard that ensures that a referenced ThreadCell becomes properly released when
it becomes dropped. Guards do not prevent the explicit release of a ThreadCell. Deref a
GuardMut referencing a released ThreadCell will panic!
Trait Implementations§
Source§impl<T> Deref for GuardMut<'_, T>
One can deref a GuardMut as long the ThreadCell is owned by the current thread this
should be the case as long the guarded ThreadCell got not explicitly released or stolen.
impl<T> Deref for GuardMut<'_, T>
One can deref a GuardMut as long the ThreadCell is owned by the current thread this
should be the case as long the guarded ThreadCell got not explicitly released or stolen.
§Panics
When the underlying ThreadCell is not owned by the current thread.
Auto Trait Implementations§
impl<'a, T> Freeze for GuardMut<'a, T>
impl<'a, T> RefUnwindSafe for GuardMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for GuardMut<'a, T>where
T: Send,
impl<'a, T> Sync for GuardMut<'a, T>where
T: Send,
impl<'a, T> Unpin for GuardMut<'a, T>
impl<'a, T> !UnwindSafe for GuardMut<'a, T>
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