pub struct IrqGuard<'cell, T: ?Sized> { /* private fields */ }Available on crate feature
full and non-crate feature use_std only.Expand description
An RAII implementation of a “scoped lock” of an IrqCell. When this structure is
dropped (falls out of scope), the lock will be unlocked.
The data protected by the IrqCell can be accessed through this guard via its
[Deref] and [DerefMut] implementations.
This structure is created by the lock and
make_guard_unchecked methods on
IrqCell.
Implementations§
Trait Implementations§
impl<'b, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<IrqGuard<'b, U>> for IrqGuard<'b, T>
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<IrqGuard<'a, U>> for IrqGuard<'a, T>
Auto Trait Implementations§
impl<'cell, T> !RefUnwindSafe for IrqGuard<'cell, T>
impl<'cell, T> !Send for IrqGuard<'cell, T>
impl<'cell, T> !Sync for IrqGuard<'cell, T>
impl<'cell, T> !UnwindSafe for IrqGuard<'cell, T>
impl<'cell, T> Freeze for IrqGuard<'cell, T>where
&'cell IrqCell<T>: Freeze,
T: ?Sized,
impl<'cell, T> Unpin for IrqGuard<'cell, T>where
&'cell IrqCell<T>: Unpin,
T: ?Sized,
impl<'cell, T> UnsafeUnpin for IrqGuard<'cell, T>where
&'cell IrqCell<T>: UnsafeUnpin,
T: ?Sized,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more