pub struct Ctx {
pub token: CancellationToken,
pub scope: ScopeHandle,
pub fiber_id: FiberId,
pub locals: Arc<TokioMutex<HashMap<usize, Arc<dyn Any + Send + Sync>>>>,
pub clock: Arc<dyn Clock>,
}Expand description
Runtime Context passed down the call stack.
Fields§
§token: CancellationToken§scope: ScopeHandle§fiber_id: FiberId§locals: Arc<TokioMutex<HashMap<usize, Arc<dyn Any + Send + Sync>>>>§clock: Arc<dyn Clock>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ctx
impl !RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl !UnwindSafe for Ctx
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