#[non_exhaustive]pub struct HostHandler<AQ, AO, HAP, HQ, Ctx>{
pub authentication_types: Vec<AuthenticationType>,
pub authentication_verifier: AuthenticationVerifier<AQ, AO, Ctx>,
pub hostname_types: Vec<HostnameType>,
pub fetcher: Fetcher<AO, HAP, HQ, Ctx>,
pub ctx: Ctx,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.authentication_types: Vec<AuthenticationType>§authentication_verifier: AuthenticationVerifier<AQ, AO, Ctx>§hostname_types: Vec<HostnameType>§fetcher: Fetcher<AO, HAP, HQ, Ctx>§ctx: CtxImplementations§
Source§impl<AQ, AO, HAP, HQ, Ctx> HostHandler<AQ, AO, HAP, HQ, Ctx>
impl<AQ, AO, HAP, HQ, Ctx> HostHandler<AQ, AO, HAP, HQ, Ctx>
pub fn new( authentication_types: Vec<AuthenticationType>, authentication_verifier: AuthenticationVerifier<AQ, AO, Ctx>, hostname_types: Vec<HostnameType>, fetcher: Fetcher<AO, HAP, HQ, Ctx>, ctx: Ctx, ) -> Self
Trait Implementations§
Source§impl<AQ, AO, HAP, HQ, Ctx> Clone for HostHandler<AQ, AO, HAP, HQ, Ctx>
impl<AQ, AO, HAP, HQ, Ctx> Clone for HostHandler<AQ, AO, HAP, HQ, Ctx>
Source§impl<T, S, AQ, AO, HAP, HQ, Ctx> Handler<T, S> for HostHandler<AQ, AO, HAP, HQ, Ctx>where
S: Send + Sync + 'static,
AQ: AuthenticationQuery + Send + 'static,
AO: Send + 'static,
HAP: HostnameAxumPath + Send + 'static,
HQ: HostnameQuery + Send + 'static,
Ctx: Clone + Send + Sync + 'static,
impl<T, S, AQ, AO, HAP, HQ, Ctx> Handler<T, S> for HostHandler<AQ, AO, HAP, HQ, Ctx>where
S: Send + Sync + 'static,
AQ: AuthenticationQuery + Send + 'static,
AO: Send + 'static,
HAP: HostnameAxumPath + Send + 'static,
HQ: HostnameQuery + Send + 'static,
Ctx: Clone + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<UnsyncBoxBody<Bytes, Error>>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<UnsyncBoxBody<Bytes, Error>>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request<Body>, state: S) -> Self::Future
fn call(self, req: Request<Body>, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L, NewReqBody>(self, layer: L) -> Layered<L, Self, T, S, B, NewReqBody>where
L: Layer<HandlerService<Self, T, S, B>> + Clone,
<L as Layer<HandlerService<Self, T, S, B>>>::Service: Service<Request<NewReqBody>>,
fn layer<L, NewReqBody>(self, layer: L) -> Layered<L, Self, T, S, B, NewReqBody>where
L: Layer<HandlerService<Self, T, S, B>> + Clone,
<L as Layer<HandlerService<Self, T, S, B>>>::Service: Service<Request<NewReqBody>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S, B>
fn with_state(self, state: S) -> HandlerService<Self, T, S, B>
Convert the handler into a
Service by providing the stateAuto Trait Implementations§
impl<AQ, AO, HAP, HQ, Ctx> !RefUnwindSafe for HostHandler<AQ, AO, HAP, HQ, Ctx>
impl<AQ, AO, HAP, HQ, Ctx> !UnwindSafe for HostHandler<AQ, AO, HAP, HQ, Ctx>
impl<AQ, AO, HAP, HQ, Ctx> Freeze for HostHandler<AQ, AO, HAP, HQ, Ctx>where
Ctx: Freeze,
impl<AQ, AO, HAP, HQ, Ctx> Send for HostHandler<AQ, AO, HAP, HQ, Ctx>where
Ctx: Send,
impl<AQ, AO, HAP, HQ, Ctx> Sync for HostHandler<AQ, AO, HAP, HQ, Ctx>where
Ctx: Sync,
impl<AQ, AO, HAP, HQ, Ctx> Unpin for HostHandler<AQ, AO, HAP, HQ, Ctx>where
Ctx: Unpin,
impl<AQ, AO, HAP, HQ, Ctx> UnsafeUnpin for HostHandler<AQ, AO, HAP, HQ, Ctx>where
Ctx: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, T, B> HandlerWithoutStateExt<T, B> for H
impl<H, T, B> HandlerWithoutStateExt<T, B> for H
Source§fn into_service(self) -> HandlerService<H, T, (), B>
fn into_service(self) -> HandlerService<H, T, (), B>
Convert the handler into a
Service and no state.Source§fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, (), B>>
fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, (), B>>
Convert the handler into a
MakeService and no state. Read moreSource§fn into_make_service_with_connect_info<C>(
self,
) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, (), B>, C>
fn into_make_service_with_connect_info<C>( self, ) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, (), B>, C>
Convert the handler into a
MakeService which stores information
about the incoming connection and has no state. Read more