pub struct CurrentCpuOwnerHandles { /* private fields */ }Expand description
Runtime-owned capability snapshot for one pinned scheduler CPU.
The paired fields are captured in one runtime operation, mirroring Linux’s
direct this_rq() lookup. The remote endpoint is the sole owner identity;
its embedded CPU ID prevents a second architecture or registry lookup.
Implementations§
Source§impl CurrentCpuOwnerHandles
impl CurrentCpuOwnerHandles
Sourcepub const unsafe fn new(
local: CurrentCpuLocalHandle,
remote: CpuRemoteHandle,
) -> Self
pub const unsafe fn new( local: CurrentCpuLocalHandle, remote: CpuRemoteHandle, ) -> Self
Creates one pinned current-CPU capability snapshot.
§Safety
local and remote must identify the paired owner-only and Arc-backed
scheduler endpoints for the pinned CPU. Every non-empty handle must
remain live until shutdown, and the caller must keep migration excluded
while the snapshot is used.
Sourcepub const fn local(self) -> CurrentCpuLocalHandle
pub const fn local(self) -> CurrentCpuLocalHandle
Returns the current CPU’s owner-only scheduler handle.
Sourcepub const fn remote(self) -> CpuRemoteHandle
pub const fn remote(self) -> CpuRemoteHandle
Returns the current CPU’s Arc-backed remote endpoint.
Trait Implementations§
Source§impl Clone for CurrentCpuOwnerHandles
impl Clone for CurrentCpuOwnerHandles
Source§fn clone(&self) -> CurrentCpuOwnerHandles
fn clone(&self) -> CurrentCpuOwnerHandles
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 CurrentCpuOwnerHandles
Source§impl Debug for CurrentCpuOwnerHandles
impl Debug for CurrentCpuOwnerHandles
impl Eq for CurrentCpuOwnerHandles
Source§impl PartialEq for CurrentCpuOwnerHandles
impl PartialEq for CurrentCpuOwnerHandles
impl StructuralPartialEq for CurrentCpuOwnerHandles
Auto Trait Implementations§
impl Freeze for CurrentCpuOwnerHandles
impl RefUnwindSafe for CurrentCpuOwnerHandles
impl Send for CurrentCpuOwnerHandles
impl Sync for CurrentCpuOwnerHandles
impl Unpin for CurrentCpuOwnerHandles
impl UnsafeUnpin for CurrentCpuOwnerHandles
impl UnwindSafe for CurrentCpuOwnerHandles
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