Struct actix_net::framed::IntoFramed [−][src]
pub struct IntoFramed<T, U, F> where
T: AsyncRead + AsyncWrite,
F: Fn() -> U + Send + Clone + 'static,
U: Encoder + Decoder, { /* fields omitted */ }
Methods
impl<T, U, F> IntoFramed<T, U, F> where
T: AsyncRead + AsyncWrite,
F: Fn() -> U + Send + Clone + 'static,
U: Encoder + Decoder,
[src]
impl<T, U, F> IntoFramed<T, U, F> where
T: AsyncRead + AsyncWrite,
F: Fn() -> U + Send + Clone + 'static,
U: Encoder + Decoder,
Trait Implementations
impl<T, U, F> NewService for IntoFramed<T, U, F> where
T: AsyncRead + AsyncWrite,
F: Fn() -> U + Send + Clone + 'static,
U: Encoder + Decoder,
[src]
impl<T, U, F> NewService for IntoFramed<T, U, F> where
T: AsyncRead + AsyncWrite,
F: Fn() -> U + Send + Clone + 'static,
U: Encoder + Decoder,
type Request = T
Requests handled by the service
type Response = Framed<T, U>
Responses given by the service
type Error = ()
Errors produced by the service
type InitError = ()
Errors produced while building a service.
type Service = IntoFramedService<T, U, 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::Future
Create and return a new service value asynchronously.
Auto Trait Implementations
impl<T, U, F> Send for IntoFramed<T, U, F> where
T: Send,
impl<T, U, F> Send for IntoFramed<T, U, F> where
T: Send,
impl<T, U, F> Sync for IntoFramed<T, U, F> where
F: Sync,
T: Sync,
impl<T, U, F> Sync for IntoFramed<T, U, F> where
F: Sync,
T: Sync,