pub struct RuntimeContext<T, D = ()> {
pub event: T,
pub meta: EndpointMetadata,
pub database: D,
}Expand description
All the context needed for a runtime handler to function with.
Fields§
§event: T§meta: EndpointMetadata§database: DAuto Trait Implementations§
impl<T, D> Freeze for RuntimeContext<T, D>
impl<T, D> RefUnwindSafe for RuntimeContext<T, D>where
T: RefUnwindSafe,
D: RefUnwindSafe,
impl<T, D> Send for RuntimeContext<T, D>
impl<T, D> Sync for RuntimeContext<T, D>
impl<T, D> Unpin for RuntimeContext<T, D>
impl<T, D> UnsafeUnpin for RuntimeContext<T, D>where
T: UnsafeUnpin,
D: UnsafeUnpin,
impl<T, D> UnwindSafe for RuntimeContext<T, D>where
T: UnwindSafe,
D: UnwindSafe,
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