pub struct IrqGuardToken(/* private fields */);Expand description
Token returned by the nested IRQ guard service.
Implementations§
Source§impl IrqGuardToken
impl IrqGuardToken
Sourcepub const unsafe fn from_raw(raw: usize) -> Self
pub const unsafe fn from_raw(raw: usize) -> Self
Creates a handle from the runtime-owned opaque value.
§Safety
A non-zero raw value must identify a live runtime-owned object
or resource of this exact handle type. The caller must uphold all
provenance, lifetime, pinning, aliasing, and ownership invariants
required by operations that consume or dereference the handle.
Use Self::NONE for the absent-handle sentinel.
ⓘ
use ax_task::runtime::cpu::IrqGuardToken;
let _handle = IrqGuardToken::from_raw(1);Trait Implementations§
Source§impl Clone for IrqGuardToken
impl Clone for IrqGuardToken
Source§fn clone(&self) -> IrqGuardToken
fn clone(&self) -> IrqGuardToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IrqGuardToken
Source§impl Debug for IrqGuardToken
impl Debug for IrqGuardToken
impl Eq for IrqGuardToken
Source§impl Hash for IrqGuardToken
impl Hash for IrqGuardToken
Source§impl PartialEq for IrqGuardToken
impl PartialEq for IrqGuardToken
impl StructuralPartialEq for IrqGuardToken
Auto Trait Implementations§
impl Freeze for IrqGuardToken
impl RefUnwindSafe for IrqGuardToken
impl Send for IrqGuardToken
impl Sync for IrqGuardToken
impl Unpin for IrqGuardToken
impl UnsafeUnpin for IrqGuardToken
impl UnwindSafe for IrqGuardToken
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