Struct ScopeId
pub struct ScopeId { /* private fields */ }Expand description
A generation-checked lifecycle handle issued by one TickScheduler.
Clones name the same scope. Foreign, cancelled and reused handles are rejected;
dropping the last handle does not release its slot. Explicitly cancel the
scope even after all its tasks have drained. Handles are not wire/save IDs.
See the module’s runnable respawn recipe and TickScheduler::cancel_scope_with.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScopeId
impl RefUnwindSafe for ScopeId
impl Send for ScopeId
impl Sync for ScopeId
impl Unpin for ScopeId
impl UnwindSafe for ScopeId
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