pub enum JwtFuture<DecKeyFn: DecodingKeyFn, TService: Service<Request<ReqBody>, Response = Response<ResBody>>, ReqBody, ResBody, Claim> {
Error,
WaitForFuture {
future: TService::Future,
},
HasTokenWaitingForDecodingKey {
bearer: Authorization<Bearer>,
request: Request<ReqBody>,
decoding_key_future: Pin<Box<dyn Future<Output = Result<DecodingKey, DecKeyFn::Error>> + Send>>,
validation: Box<Validation>,
service: TService,
_phantom: PhantomData<Claim>,
},
}Variants§
Error
WaitForFuture
HasTokenWaitingForDecodingKey
Fields
§
bearer: Authorization<Bearer>§
validation: Box<Validation>§
service: TService§
_phantom: PhantomData<Claim>Trait Implementations§
Source§impl<DecKeyFn, TService, ReqBody, ResBody, Claim> Future for JwtFuture<DecKeyFn, TService, ReqBody, ResBody, Claim>where
DecKeyFn: DecodingKeyFn + 'static,
TService: Service<Request<ReqBody>, Response = Response<ResBody>>,
ResBody: Default,
for<'de> Claim: Deserialize<'de> + Send + Sync + Clone + 'static,
impl<DecKeyFn, TService, ReqBody, ResBody, Claim> Future for JwtFuture<DecKeyFn, TService, ReqBody, ResBody, Claim>where
DecKeyFn: DecodingKeyFn + 'static,
TService: Service<Request<ReqBody>, Response = Response<ResBody>>,
ResBody: Default,
for<'de> Claim: Deserialize<'de> + Send + Sync + Clone + 'static,
impl<'pin, DecKeyFn: DecodingKeyFn, TService: Service<Request<ReqBody>, Response = Response<ResBody>>, ReqBody, ResBody, Claim> Unpin for JwtFuture<DecKeyFn, TService, ReqBody, ResBody, Claim>where
PinnedFieldsOf<__JwtFuture<'pin, DecKeyFn, TService, ReqBody, ResBody, Claim>>: Unpin,
Auto Trait Implementations§
impl<DecKeyFn, TService, ReqBody, ResBody, Claim> !Freeze for JwtFuture<DecKeyFn, TService, ReqBody, ResBody, Claim>
impl<DecKeyFn, TService, ReqBody, ResBody, Claim> !RefUnwindSafe for JwtFuture<DecKeyFn, TService, ReqBody, ResBody, Claim>
impl<DecKeyFn, TService, ReqBody, ResBody, Claim> Send for JwtFuture<DecKeyFn, TService, ReqBody, ResBody, Claim>
impl<DecKeyFn, TService, ReqBody, ResBody, Claim> !Sync for JwtFuture<DecKeyFn, TService, ReqBody, ResBody, Claim>
impl<DecKeyFn, TService, ReqBody, ResBody, Claim> !UnwindSafe for JwtFuture<DecKeyFn, TService, ReqBody, ResBody, Claim>
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> 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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more