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