pub struct IrqCell<T: ?Sized> {
state: Cell<Option<usize>>,
data: UnsafeCell<T>,
}
🔬This is a nightly-only experimental API. (
kernel_irq_cell
)Available on non-crate feature
use_std
only.Fields§
§state: Cell<Option<usize>>
🔬This is a nightly-only experimental API. (
§kernel_irq_cell
)data: UnsafeCell<T>
🔬This is a nightly-only experimental API. (
kernel_irq_cell
)Implementations§
Source§impl<T: ?Sized> IrqCell<T>
impl<T: ?Sized> IrqCell<T>
pub fn lock(&self) -> IrqGuard<'_, T>
🔬This is a nightly-only experimental API. (
kernel_irq_cell
)pub unsafe fn make_guard_unchecked(&self) -> IrqGuard<'_, T>
🔬This is a nightly-only experimental API. (
kernel_irq_cell
)pub unsafe fn unlock(&self)
🔬This is a nightly-only experimental API. (
kernel_irq_cell
)Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for IrqCell<T>
impl<T> !RefUnwindSafe for IrqCell<T>
impl<T> Send for IrqCell<T>where
T: Send + ?Sized,
impl<T> !Sync for IrqCell<T>
impl<T> Unpin for IrqCell<T>where
T: Unpin + ?Sized,
impl<T> UnwindSafe for IrqCell<T>where
T: UnwindSafe + ?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