pub struct CpuRemoteHandle(/* private fields */);Expand description
Opaque pointer-sized handle to one Arc-backed remote CPU endpoint.
Remote and owner-only CPU handles are intentionally not interchangeable:
ⓘ
use ax_task::runtime::cpu::{CpuRemoteHandle, CurrentCpuLocalHandle};
fn borrow_owner(_handle: CurrentCpuLocalHandle) {}
borrow_owner(CpuRemoteHandle::NONE);Implementations§
Source§impl CpuRemoteHandle
impl CpuRemoteHandle
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::CpuRemoteHandle;
let _handle = CpuRemoteHandle::from_raw(1);Trait Implementations§
Source§impl Clone for CpuRemoteHandle
impl Clone for CpuRemoteHandle
Source§fn clone(&self) -> CpuRemoteHandle
fn clone(&self) -> CpuRemoteHandle
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 CpuRemoteHandle
Source§impl Debug for CpuRemoteHandle
impl Debug for CpuRemoteHandle
impl Eq for CpuRemoteHandle
Source§impl Hash for CpuRemoteHandle
impl Hash for CpuRemoteHandle
Source§impl PartialEq for CpuRemoteHandle
impl PartialEq for CpuRemoteHandle
impl StructuralPartialEq for CpuRemoteHandle
Auto Trait Implementations§
impl Freeze for CpuRemoteHandle
impl RefUnwindSafe for CpuRemoteHandle
impl Send for CpuRemoteHandle
impl Sync for CpuRemoteHandle
impl Unpin for CpuRemoteHandle
impl UnsafeUnpin for CpuRemoteHandle
impl UnwindSafe for CpuRemoteHandle
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