Expand description
The context that is passed to the object’s init
, load_from_storage
, and handle
functions.
Wraps worker::State
and worker::Env
.
Fields
state: &'s State
env: &'s Env
Implementations
Auto Trait Implementations
impl<'s> RefUnwindSafe for Ctx<'s>
impl<'s> !Send for Ctx<'s>
impl<'s> !Sync for Ctx<'s>
impl<'s> Unpin for Ctx<'s>
impl<'s> UnwindSafe for Ctx<'s>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more