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