pub struct StrandSlot {
pub strand_id: AtomicU64,
pub spawn_time: AtomicU64,
}Expand description
A slot in the strand registry
Uses two atomics to store strand info without locks. A slot is free when strand_id == 0.
Fields§
§strand_id: AtomicU64Strand ID (0 = free, >0 = active strand)
spawn_time: AtomicU64Spawn timestamp (seconds since UNIX epoch, for detecting stuck strands)
Auto Trait Implementations§
impl !Freeze for StrandSlot
impl RefUnwindSafe for StrandSlot
impl Send for StrandSlot
impl Sync for StrandSlot
impl Unpin for StrandSlot
impl UnwindSafe for StrandSlot
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more