Struct actix_net::framed::FramedService
source · pub struct FramedService<S, T, U> { /* private fields */ }
Trait Implementations§
source§impl<S, T, U> Clone for FramedService<S, T, U>where
S: Clone,
impl<S, T, U> Clone for FramedService<S, T, U>where
S: Clone,
source§impl<S, T, U> Service for FramedService<S, T, U>where
T: AsyncRead + AsyncWrite,
U: Decoder + Encoder,
S: NewService<Request = <U as Decoder>::Item, Response = <U as Encoder>::Item>,
<<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,
impl<S, T, U> Service for FramedService<S, T, U>where
T: AsyncRead + AsyncWrite,
U: Decoder + Encoder,
S: NewService<Request = <U as Decoder>::Item, Response = <U as Encoder>::Item>,
<<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 Response = FramedTransport<<S as NewService>::Service, T, U>
type Response = FramedTransport<<S as NewService>::Service, T, U>
Responses given by the service.
§type Error = <S as NewService>::InitError
type Error = <S as NewService>::InitError
Errors produced by the service.
source§fn poll_ready(&mut self) -> Poll<(), Self::Error>
fn poll_ready(&mut self) -> Poll<(), Self::Error>
Returns
Ready
when the service is able to process requests. Read moreAuto Trait Implementations§
impl<S, T, U> RefUnwindSafe for FramedService<S, T, U>where
S: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<S, T, U> Send for FramedService<S, T, U>where
S: Send,
T: Send,
U: Send,
impl<S, T, U> Sync for FramedService<S, T, U>where
S: Sync,
T: Sync,
U: Sync,
impl<S, T, U> Unpin for FramedService<S, T, U>where
S: Unpin,
T: Unpin,
U: Unpin,
impl<S, T, U> UnwindSafe for FramedService<S, T, U>where
S: UnwindSafe,
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
source§impl<T> IntoService<T> for Twhere
T: Service,
impl<T> IntoService<T> for Twhere
T: Service,
source§fn into_service(self) -> T
fn into_service(self) -> T
Convert to a
Service
source§impl<T> ServiceExt for Twhere
T: Service + ?Sized,
impl<T> ServiceExt for Twhere
T: Service + ?Sized,
source§fn apply<S, I, F, R>(
self,
service: I,
f: F
) -> AndThen<Self, Apply<S, F, R, Self::Response>>where
Self: Sized,
S: Service,
S::Error: Into<<R::Future as Future>::Error>,
I: IntoService<S>,
F: Fn(Self::Response, &mut S) -> R,
R: IntoFuture<Error = Self::Error>,
fn apply<S, I, F, R>(
self,
service: I,
f: F
) -> AndThen<Self, Apply<S, F, R, Self::Response>>where
Self: Sized,
S: Service,
S::Error: Into<<R::Future as Future>::Error>,
I: IntoService<S>,
F: Fn(Self::Response, &mut S) -> R,
R: IntoFuture<Error = Self::Error>,
Apply function to specified service and use it as a next service in
chain. Read more
source§fn and_then<F, B>(self, service: F) -> AndThen<Self, B>where
Self: Sized,
F: IntoService<B>,
B: Service<Request = Self::Response, Error = Self::Error>,
fn and_then<F, B>(self, service: F) -> AndThen<Self, B>where
Self: Sized,
F: IntoService<B>,
B: Service<Request = Self::Response, Error = Self::Error>,
Call another service after call to this one has resolved successfully. Read more
source§fn then<B>(self, service: B) -> Then<Self, B>where
Self: Sized,
B: Service<Request = Result<Self::Response, Self::Error>, Error = Self::Error>,
fn then<B>(self, service: B) -> Then<Self, B>where
Self: Sized,
B: Service<Request = Result<Self::Response, Self::Error>, Error = Self::Error>,
Chain on a computation for when a call to the service finished,
passing the result of the call to the next service
B
. Read more