Struct actix_net::keepalive::KeepAliveService [−][src]
pub struct KeepAliveService<R, E, F> { /* fields omitted */ }
Methods
impl<R, E, F> KeepAliveService<R, E, F> where
F: Fn() -> E,
[src]
impl<R, E, F> KeepAliveService<R, E, F> where
F: Fn() -> E,
pub fn new(ka: Duration, timer: LowResTimerService, f: F) -> Self
[src]
pub fn new(ka: Duration, timer: LowResTimerService, f: F) -> Self
Trait Implementations
impl<R, E, F> Service for KeepAliveService<R, E, F> where
F: Fn() -> E,
[src]
impl<R, E, F> Service for KeepAliveService<R, E, F> where
F: Fn() -> E,
type Request = R
Requests handled by the service.
type Response = R
Responses given by the service.
type Error = E
Errors produced by the service.
type Future = FutureResult<R, E>
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>
[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>
Returns Ready
when the service is able to process requests. Read more
fn call(&mut self, req: Self::Request) -> Self::Future
[src]
fn call(&mut self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>
[src]
fn ready(self) -> Ready<Self>
A future yielding the service when it is ready to accept a request.
Auto Trait Implementations
impl<R, E, F> !Send 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> !Sync for KeepAliveService<R, E, F>