pub struct RedirectHTTPSService<S> { /* private fields */ }
Trait Implementations§
Source§impl<S, B> Service for RedirectHTTPSService<S>where
S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
impl<S, B> Service for RedirectHTTPSService<S>where
S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
Source§type Request = ServiceRequest
type Request = ServiceRequest
Requests handled by the service.
Source§type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses given by the service.
Source§type Future = Either<<S as Service>::Future, Ready<Result<<RedirectHTTPSService<S> as Service>::Response, <RedirectHTTPSService<S> as Service>::Error>>>
type Future = Either<<S as Service>::Future, Ready<Result<<RedirectHTTPSService<S> as Service>::Response, <RedirectHTTPSService<S> as Service>::Error>>>
The future response value.
Source§fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready
when the service is able to process requests. Read moreSource§fn call(&mut self, req: ServiceRequest) -> Self::Future
fn call(&mut self, req: ServiceRequest) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<S> Freeze for RedirectHTTPSService<S>where
S: Freeze,
impl<S> RefUnwindSafe for RedirectHTTPSService<S>where
S: RefUnwindSafe,
impl<S> Send for RedirectHTTPSService<S>where
S: Send,
impl<S> Sync for RedirectHTTPSService<S>where
S: Sync,
impl<S> Unpin for RedirectHTTPSService<S>where
S: Unpin,
impl<S> UnwindSafe for RedirectHTTPSService<S>where
S: 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> 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<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<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 moreSource§impl<T> IntoService<T> for Twhere
T: Service,
impl<T> IntoService<T> for Twhere
T: Service,
Source§fn into_service(self) -> T
fn into_service(self) -> T
Convert to a
Service