pub struct KeepAliveService<R, E, F> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<R, E, F> Debug for KeepAliveService<R, E, F>
impl<R, E, F> Debug for KeepAliveService<R, E, F>
source§impl<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,
source§async fn ready(&self, _: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, _: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
source§async fn call(&self, req: R, _: ServiceCtx<'_, Self>) -> Result<R, E>
async fn call(&self, req: R, _: ServiceCtx<'_, Self>) -> Result<R, E>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<R, E, F> !Freeze for KeepAliveService<R, E, F>
impl<R, E, F> !RefUnwindSafe for KeepAliveService<R, E, F>
impl<R, E, F> Send for KeepAliveService<R, E, F>
impl<R, E, F> !Sync for KeepAliveService<R, E, F>
impl<R, E, F> Unpin for KeepAliveService<R, E, F>
impl<R, E, F> UnwindSafe for KeepAliveService<R, E, F>
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<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service