pub struct AddExtension<S, T> { /* private fields */ }Expand description
Middleware for adding some shareable value to [request data].
Trait Implementations§
Source§impl<S: Clone, T: Clone> Clone for AddExtension<S, T>
impl<S: Clone, T: Clone> Clone for AddExtension<S, T>
Source§fn clone(&self) -> AddExtension<S, T>
fn clone(&self) -> AddExtension<S, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, T, Args, Ctx, IdType> Service<Task<Args, Ctx, IdType>> for AddExtension<S, T>
impl<S, T, Args, Ctx, IdType> Service<Task<Args, Ctx, IdType>> for AddExtension<S, T>
impl<S: Copy, T: Copy> Copy for AddExtension<S, T>
Auto Trait Implementations§
impl<S, T> Freeze for AddExtension<S, T>
impl<S, T> RefUnwindSafe for AddExtension<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for AddExtension<S, T>
impl<S, T> Sync for AddExtension<S, T>
impl<S, T> Unpin for AddExtension<S, T>
impl<S, T> UnwindSafe for AddExtension<S, T>where
S: UnwindSafe,
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Args, Ctx, S, B> IntoWorkerService<B, S, Args, Ctx> for S
impl<Args, Ctx, S, B> IntoWorkerService<B, S, Args, Ctx> for S
Source§fn into_service(self, _: &B) -> S
fn into_service(self, _: &B) -> S
Build the service from the backend
Source§impl<T, Args, Ctx, Svc, B, M> IntoWorkerServiceExt<Args, Ctx, Svc, B, M> for T
impl<T, Args, Ctx, Svc, B, M> IntoWorkerServiceExt<Args, Ctx, Svc, B, M> for T
Source§fn build_with(
self,
builder: WorkerBuilder<Args, Ctx, B, M>,
) -> Worker<Args, Ctx, B, Svc, M>
fn build_with( self, builder: WorkerBuilder<Args, Ctx, B, M>, ) -> Worker<Args, Ctx, B, Svc, M>
Consumes the builder and returns a worker