Enum ResponseFutureProj
pub(crate) enum ResponseFutureProj<'pin, F>where
ResponseFuture<F>: 'pin,{
Authorized(Pin<&'pin mut F>),
RequiresAuthentication(&'pin mut Pin<Box<dyn Future<Output = Response> + Send + 'static>>),
Unauthorized,
}Variants§
Authorized(Pin<&'pin mut F>)
RequiresAuthentication(&'pin mut Pin<Box<dyn Future<Output = Response> + Send + 'static>>)
Auto Trait Implementations§
impl<'pin, F> Freeze for ResponseFutureProj<'pin, F>
impl<'pin, F> !RefUnwindSafe for ResponseFutureProj<'pin, F>
impl<'pin, F> Send for ResponseFutureProj<'pin, F>where
F: Send,
impl<'pin, F> !Sync for ResponseFutureProj<'pin, F>
impl<'pin, F> Unpin for ResponseFutureProj<'pin, F>
impl<'pin, F> !UnwindSafe for ResponseFutureProj<'pin, F>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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