pub struct AddressSpaceToken(/* private fields */);Expand description
Unique destruction right for one runtime-owned address-space object.
The scheduler may copy AddressSpaceHandle values derived from this
token into dispatch metadata, but exactly one token owns the eventual
crate::runtime::TaskRuntime::destroy_address_space operation.
Implementations§
Source§impl AddressSpaceToken
impl AddressSpaceToken
Sourcepub const unsafe fn from_raw(raw: usize) -> Self
pub const unsafe fn from_raw(raw: usize) -> Self
Creates an owning token from a fresh runtime object.
§Safety
A non-zero value must identify a live runtime-owned address-space object whose unique destruction right is transferred to the caller.
Sourcepub const fn handle(&self) -> AddressSpaceHandle
pub const fn handle(&self) -> AddressSpaceHandle
Borrows the opaque identity without transferring destruction rights.
Trait Implementations§
Source§impl Debug for AddressSpaceToken
impl Debug for AddressSpaceToken
impl Eq for AddressSpaceToken
Source§impl PartialEq for AddressSpaceToken
impl PartialEq for AddressSpaceToken
impl StructuralPartialEq for AddressSpaceToken
Auto Trait Implementations§
impl Freeze for AddressSpaceToken
impl RefUnwindSafe for AddressSpaceToken
impl Send for AddressSpaceToken
impl Sync for AddressSpaceToken
impl Unpin for AddressSpaceToken
impl UnsafeUnpin for AddressSpaceToken
impl UnwindSafe for AddressSpaceToken
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