Trait hyper::service::make::MakeServiceRef

source ·
pub trait MakeServiceRef<Target, ReqBody>: Sealed<(Target, ReqBody)> {
    type ResBody: HttpBody;
    type Error: Into<Box<dyn StdError + Send + Sync>>;
    type Service: HttpService<ReqBody, ResBody = Self::ResBody, Error = Self::Error>;
    type MakeError: Into<Box<dyn StdError + Send + Sync>>;
    type Future: Future<Output = Result<Self::Service, Self::MakeError>>;
    type __DontNameMe: CantImpl;

    // Required methods
    fn poll_ready_ref(
        &mut self,
        cx: &mut Context<'_>,
    ) -> Poll<Result<(), Self::MakeError>>;
    fn make_service_ref(&mut self, target: &Target) -> Self::Future;
}

Required Associated Types§

source

type ResBody: HttpBody

source

type Error: Into<Box<dyn StdError + Send + Sync>>

source

type Service: HttpService<ReqBody, ResBody = Self::ResBody, Error = Self::Error>

source

type MakeError: Into<Box<dyn StdError + Send + Sync>>

source

type Future: Future<Output = Result<Self::Service, Self::MakeError>>

source

type __DontNameMe: CantImpl

Required Methods§

source

fn poll_ready_ref( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::MakeError>>

source

fn make_service_ref(&mut self, target: &Target) -> Self::Future

Implementors§

source§

impl<T, Target, E, ME, S, F, IB, OB> MakeServiceRef<Target, IB> for T
where T: for<'a> Service<&'a Target, Error = ME, Response = S, Future = F>, E: Into<Box<dyn StdError + Send + Sync>>, ME: Into<Box<dyn StdError + Send + Sync>>, S: HttpService<IB, ResBody = OB, Error = E>, F: Future<Output = Result<S, ME>>, IB: HttpBody, OB: HttpBody,

§

type Error = E

§

type Service = S

§

type ResBody = OB

§

type MakeError = ME

§

type Future = F

§

type __DontNameMe = CantName