pub struct MakeAddContext<T, A> { /* private fields */ }
Implementations§
Source§impl<T, A, B, C, D> MakeAddContext<T, A>where
A: Default + Push<XSpanIdString, Result = B>,
B: Push<Option<AuthData>, Result = C>,
C: Push<Option<Authorization>, Result = D>,
impl<T, A, B, C, D> MakeAddContext<T, A>where
A: Default + Push<XSpanIdString, Result = B>,
B: Push<Option<AuthData>, Result = C>,
C: Push<Option<Authorization>, Result = D>,
pub fn new(inner: T) -> MakeAddContext<T, A>
Trait Implementations§
Source§impl<Target, T, A, B, C, D> Service<Target> for MakeAddContext<T, A>
impl<Target, T, A, B, C, D> Service<Target> for MakeAddContext<T, A>
Source§type Response = AddContext<<T as Service<Target>>::Response, A, B, C, D>
type Response = AddContext<<T as Service<Target>>::Response, A, B, C, D>
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<MakeAddContext<T, A> as Service<Target>>::Response, <MakeAddContext<T, A> as Service<Target>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<MakeAddContext<T, A> as Service<Target>>::Response, <MakeAddContext<T, A> as Service<Target>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<T, A> Freeze for MakeAddContext<T, A>where
T: Freeze,
impl<T, A> RefUnwindSafe for MakeAddContext<T, A>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<T, A> Send for MakeAddContext<T, A>
impl<T, A> Sync for MakeAddContext<T, A>
impl<T, A> Unpin for MakeAddContext<T, A>
impl<T, A> UnwindSafe for MakeAddContext<T, A>where
T: UnwindSafe,
A: 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