#[repr(C)]pub struct ThreadIdentityV1 {
pub slot: u32,
pub generation: u32,
}Expand description
Versioned generation-bearing thread identity for runtime context binding.
The explicit fields keep the scheduler’s private integer encoding out of OS runtime implementations while remaining a value-only trait-FFI type.
Fields§
§slot: u32Task-system registry slot.
generation: u32Non-zero reuse generation for slot.
Implementations§
Trait Implementations§
Source§impl Clone for ThreadIdentityV1
impl Clone for ThreadIdentityV1
Source§fn clone(&self) -> ThreadIdentityV1
fn clone(&self) -> ThreadIdentityV1
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 ThreadIdentityV1
Source§impl Debug for ThreadIdentityV1
impl Debug for ThreadIdentityV1
impl Eq for ThreadIdentityV1
Source§impl PartialEq for ThreadIdentityV1
impl PartialEq for ThreadIdentityV1
impl StructuralPartialEq for ThreadIdentityV1
Auto Trait Implementations§
impl Freeze for ThreadIdentityV1
impl RefUnwindSafe for ThreadIdentityV1
impl Send for ThreadIdentityV1
impl Sync for ThreadIdentityV1
impl Unpin for ThreadIdentityV1
impl UnsafeUnpin for ThreadIdentityV1
impl UnwindSafe for ThreadIdentityV1
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