pub struct Ctx<S, C, U>{
pub cnft: Arc<S>,
pub cache: Arc<C>,
pub upstream: Arc<U>,
pub decoders: Arc<[Arc<dyn AccountDecoder>]>,
pub webhooks: Arc<WebhookRuntime<U, dyn PostClient>>,
}Expand description
Shared request-handling context. Wired once at server start and passed to every dispatch call.
Fields§
§cnft: Arc<S>§cache: Arc<C>§upstream: Arc<U>§decoders: Arc<[Arc<dyn AccountDecoder>]>§webhooks: Arc<WebhookRuntime<U, dyn PostClient>>Trait Implementations§
Auto Trait Implementations§
impl<S, C, U> Freeze for Ctx<S, C, U>
impl<S, C, U> !RefUnwindSafe for Ctx<S, C, U>
impl<S, C, U> Send for Ctx<S, C, U>
impl<S, C, U> Sync for Ctx<S, C, U>
impl<S, C, U> Unpin for Ctx<S, C, U>
impl<S, C, U> UnsafeUnpin for Ctx<S, C, U>
impl<S, C, U> !UnwindSafe for Ctx<S, C, U>
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