pub struct KeepAliveService<R, E, F> { /* private fields */ }Implementations
sourceimpl<R, E, F> KeepAliveService<R, E, F> where
F: Fn() -> E,
impl<R, E, F> KeepAliveService<R, E, F> where
F: Fn() -> E,
Trait Implementations
sourceimpl<R, E, F> Service<R> for KeepAliveService<R, E, F> where
F: Fn() -> E,
impl<R, E, F> Service<R> for KeepAliveService<R, E, F> where
F: Fn() -> E,
type Response = R
type Response = R
Responses given by the service.
type Error = E
type Error = E
Errors produced by the service.
sourcefn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns Ready when the service is able to process requests. Read more
sourcefn call(&self, req: R) -> Self::Future
fn call(&self, req: R) -> Self::Future
Process the request and return the response asynchronously. Read more
sourcefn poll_shutdown(&self, ctx: &mut Context<'_>, is_error: bool) -> Poll<()>
fn poll_shutdown(&self, ctx: &mut Context<'_>, is_error: bool) -> Poll<()>
Shutdown service. Read more
Auto Trait Implementations
impl<R, E, F> !RefUnwindSafe for KeepAliveService<R, E, F>
impl<R, E, F> Send for KeepAliveService<R, E, F> where
E: Send,
F: Send,
R: Send,
impl<R, E, F> !Sync for KeepAliveService<R, E, F>
impl<R, E, F> Unpin for KeepAliveService<R, E, F> where
E: Unpin,
F: Unpin,
R: Unpin,
impl<R, E, F> UnwindSafe for KeepAliveService<R, E, F> where
E: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, Req> IntoService<T, Req> for T where
T: Service<Req>,
impl<T, Req> IntoService<T, Req> for T where
T: Service<Req>,
sourcepub fn into_service(self) -> T
pub fn into_service(self) -> T
Convert to a Service