Struct actix_net::keepalive::KeepAlive [−][src]
pub struct KeepAlive<R, E, F> { /* fields omitted */ }Methods
impl<R, E, F> KeepAlive<R, E, F> where
F: Fn() -> E + Clone, [src]
impl<R, E, F> KeepAlive<R, E, F> where
F: Fn() -> E + Clone, pub fn new(ka: Duration, timer: LowResTimer, f: F) -> Self[src]
pub fn new(ka: Duration, timer: LowResTimer, f: F) -> SelfTrait Implementations
impl<R, E, F> Clone for KeepAlive<R, E, F> where
F: Fn() -> E + Clone, [src]
impl<R, E, F> Clone for KeepAlive<R, E, F> where
F: Fn() -> E + Clone, fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<R, E, F> NewService for KeepAlive<R, E, F> where
F: Fn() -> E + Clone, [src]
impl<R, E, F> NewService for KeepAlive<R, E, F> where
F: Fn() -> E + Clone, 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 InitError = Never
Errors produced while building a service.
type Service = KeepAliveService<R, E, F>
The Service value created by this factory
type Future = FutureResult<Self::Service, Self::InitError>
The future of the Service instance.
fn new_service(&self) -> Self::Future[src]
fn new_service(&self) -> Self::FutureCreate and return a new service value asynchronously.