Struct ntex::util::keepalive::KeepAlive [−][src]
pub struct KeepAlive<R, E, F> { /* fields omitted */ }
Expand description
KeepAlive service factory
Controls min time between requests.
Implementations
Trait Implementations
type Response = R
type Response = R
Responses given by the service
type Error = E
type Error = E
Errors produced by the service
type InitError = Infallible
type InitError = Infallible
Errors produced while building a service.
type Service = KeepAliveService<R, E, F>
type Service = KeepAliveService<R, E, F>
The Service
value created by this factory
Create and return a new service value asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<R, E, F> RefUnwindSafe for KeepAlive<R, E, F> where
E: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, E, F> UnwindSafe for KeepAlive<R, E, F> where
E: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more