pub struct CurrentThreadPublication { /* private fields */ }Expand description
Immutable scheduler publication owned by one runtime execution context.
This is the Rust equivalent of Linux’s architecture-selected current
pointer: the identity and its Arc-backed owner address are installed once
before the context can run, then remain immutable across preemption and
migration. The owner address is never a standalone weak or strong handle.
Implementations§
Source§impl CurrentThreadPublication
impl CurrentThreadPublication
Sourcepub const fn identity(self) -> ThreadIdentityV1
pub const fn identity(self) -> ThreadIdentityV1
Returns the generation-bearing scheduler identity.
Sourcepub const fn owner(self) -> CurrentThreadOwnerHandle
pub const fn owner(self) -> CurrentThreadOwnerHandle
Returns the opaque current-owner address.
Trait Implementations§
Source§impl Clone for CurrentThreadPublication
impl Clone for CurrentThreadPublication
Source§fn clone(&self) -> CurrentThreadPublication
fn clone(&self) -> CurrentThreadPublication
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 CurrentThreadPublication
Source§impl Debug for CurrentThreadPublication
impl Debug for CurrentThreadPublication
impl Eq for CurrentThreadPublication
Source§impl PartialEq for CurrentThreadPublication
impl PartialEq for CurrentThreadPublication
impl StructuralPartialEq for CurrentThreadPublication
Auto Trait Implementations§
impl Freeze for CurrentThreadPublication
impl RefUnwindSafe for CurrentThreadPublication
impl Send for CurrentThreadPublication
impl Sync for CurrentThreadPublication
impl Unpin for CurrentThreadPublication
impl UnsafeUnpin for CurrentThreadPublication
impl UnwindSafe for CurrentThreadPublication
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