Struct actix_net::framed::FramedNewService [−][src]
pub struct FramedNewService<S, T, U> { /* fields omitted */ }Methods
impl<S, T, U> FramedNewService<S, T, U> where
T: AsyncRead + AsyncWrite,
U: Decoder + Encoder,
S: NewService<Request = <U as Decoder>::Item, Response = <U as Encoder>::Item> + Clone,
<<S as NewService>::Service as Service>::Future: 'static,
<<S as NewService>::Service as Service>::Error: 'static,
<U as Encoder>::Item: 'static,
<U as Encoder>::Error: 'static, [src]
impl<S, T, U> FramedNewService<S, T, U> where
T: AsyncRead + AsyncWrite,
U: Decoder + Encoder,
S: NewService<Request = <U as Decoder>::Item, Response = <U as Encoder>::Item> + Clone,
<<S as NewService>::Service as Service>::Future: 'static,
<<S as NewService>::Service as Service>::Error: 'static,
<U as Encoder>::Item: 'static,
<U as Encoder>::Error: 'static, pub fn new<F1: IntoNewService<S>>(factory: F1) -> Self[src]
pub fn new<F1: IntoNewService<S>>(factory: F1) -> SelfTrait Implementations
impl<S, T, U> Clone for FramedNewService<S, T, U> where
S: Clone, [src]
impl<S, T, U> Clone for FramedNewService<S, T, U> where
S: 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<S, T, U> NewService for FramedNewService<S, T, U> where
T: AsyncRead + AsyncWrite,
U: Decoder + Encoder,
S: NewService<Request = <U as Decoder>::Item, Response = <U as Encoder>::Item> + Clone,
<<S as NewService>::Service as Service>::Future: 'static,
<<S as NewService>::Service as Service>::Error: 'static,
<U as Encoder>::Item: 'static,
<U as Encoder>::Error: 'static, [src]
impl<S, T, U> NewService for FramedNewService<S, T, U> where
T: AsyncRead + AsyncWrite,
U: Decoder + Encoder,
S: NewService<Request = <U as Decoder>::Item, Response = <U as Encoder>::Item> + Clone,
<<S as NewService>::Service as Service>::Future: 'static,
<<S as NewService>::Service as Service>::Error: 'static,
<U as Encoder>::Item: 'static,
<U as Encoder>::Error: 'static, type Request = Framed<T, U>
Requests handled by the service
type Response = FramedTransport<S::Service, T, U>
Responses given by the service
type Error = S::InitError
Errors produced by the service
type InitError = S::InitError
Errors produced while building a service.
type Service = FramedService<S, T, U>
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.
Auto Trait Implementations
impl<S, T, U> Send for FramedNewService<S, T, U> where
S: Send,
T: Send,
U: Send,
impl<S, T, U> Send for FramedNewService<S, T, U> where
S: Send,
T: Send,
U: Send, impl<S, T, U> Sync for FramedNewService<S, T, U> where
S: Sync,
T: Sync,
U: Sync,
impl<S, T, U> Sync for FramedNewService<S, T, U> where
S: Sync,
T: Sync,
U: Sync,