pub struct AddressSpaceHandle(/* private fields */);Expand description
Borrowed opaque handle to a runtime-owned address space.
Implementations§
Source§impl AddressSpaceHandle
impl AddressSpaceHandle
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::resource::AddressSpaceHandle;
let _handle = AddressSpaceHandle::from_raw(1);Trait Implementations§
Source§impl Clone for AddressSpaceHandle
impl Clone for AddressSpaceHandle
Source§fn clone(&self) -> AddressSpaceHandle
fn clone(&self) -> AddressSpaceHandle
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 AddressSpaceHandle
Source§impl Debug for AddressSpaceHandle
impl Debug for AddressSpaceHandle
impl Eq for AddressSpaceHandle
Source§impl Hash for AddressSpaceHandle
impl Hash for AddressSpaceHandle
Source§impl PartialEq for AddressSpaceHandle
impl PartialEq for AddressSpaceHandle
impl StructuralPartialEq for AddressSpaceHandle
Auto Trait Implementations§
impl Freeze for AddressSpaceHandle
impl RefUnwindSafe for AddressSpaceHandle
impl Send for AddressSpaceHandle
impl Sync for AddressSpaceHandle
impl Unpin for AddressSpaceHandle
impl UnsafeUnpin for AddressSpaceHandle
impl UnwindSafe for AddressSpaceHandle
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