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<'a, T, SC, A, B, C, D, E, ME, S, OB, F> MakeService<&'a SC> for MakeAddContext<T, A>where
A: Default + Push<XSpanIdString, Result = B>,
B: Push<Option<AuthData>, Result = C>,
C: Push<Option<Authorization>, Result = D>,
D: Send + 'static,
T: MakeService<&'a SC, Error = E, MakeError = ME, Service = S, ReqBody = ContextualPayload<Body, D>, ResBody = OB, Future = F>,
S: Service<Error = E, ReqBody = ContextualPayload<Body, D>, ResBody = OB> + 'static,
ME: ErrorBound,
E: ErrorBound,
F: Future<Item = S, Error = ME> + Send + 'static,
S::Future: Send,
OB: Payload,
impl<'a, T, SC, A, B, C, D, E, ME, S, OB, F> MakeService<&'a SC> for MakeAddContext<T, A>where
A: Default + Push<XSpanIdString, Result = B>,
B: Push<Option<AuthData>, Result = C>,
C: Push<Option<Authorization>, Result = D>,
D: Send + 'static,
T: MakeService<&'a SC, Error = E, MakeError = ME, Service = S, ReqBody = ContextualPayload<Body, D>, ResBody = OB, Future = F>,
S: Service<Error = E, ReqBody = ContextualPayload<Body, D>, ResBody = OB> + 'static,
ME: ErrorBound,
E: ErrorBound,
F: Future<Item = S, Error = ME> + Send + 'static,
S::Future: Send,
OB: Payload,
Source§type Service = AddContext<S, A>
type Service = AddContext<S, A>
The resolved
Service
from new_service()
.Source§type Future = Box<dyn Future<Item = <MakeAddContext<T, A> as MakeService<&'a SC>>::Service, Error = ME> + Send>
type Future = Box<dyn Future<Item = <MakeAddContext<T, A> as MakeService<&'a SC>>::Service, Error = ME> + Send>
The future returned from
new_service
of a Service
.Source§fn make_service(&mut self, ctx: &'a SC) -> Self::Future
fn make_service(&mut self, ctx: &'a SC) -> Self::Future
Create a new
Service
.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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more