#[repr(C)]pub struct ContextThreadBinding {
pub context: ExecutionContextHandle,
pub publication: CurrentThreadPublication,
}Expand description
Immutable association between one runtime context and scheduler ownership.
Contexts are created before the scheduler allocates a generation-bearing thread ID. The scheduler submits this value exactly once after ID allocation and before the thread can become runnable. The publication keeps only a pointer-sized owner address; it does not transfer an Arc or external reaper lease across the trait-FFI boundary.
Fields§
§context: ExecutionContextHandleLive runtime-owned execution context to bind.
publication: CurrentThreadPublicationImmutable current-thread publication for this execution context.
Trait Implementations§
Source§impl Clone for ContextThreadBinding
impl Clone for ContextThreadBinding
Source§fn clone(&self) -> ContextThreadBinding
fn clone(&self) -> ContextThreadBinding
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 ContextThreadBinding
Source§impl Debug for ContextThreadBinding
impl Debug for ContextThreadBinding
impl Eq for ContextThreadBinding
Source§impl PartialEq for ContextThreadBinding
impl PartialEq for ContextThreadBinding
impl StructuralPartialEq for ContextThreadBinding
Auto Trait Implementations§
impl Freeze for ContextThreadBinding
impl RefUnwindSafe for ContextThreadBinding
impl Send for ContextThreadBinding
impl Sync for ContextThreadBinding
impl Unpin for ContextThreadBinding
impl UnsafeUnpin for ContextThreadBinding
impl UnwindSafe for ContextThreadBinding
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