Struct actix_net::connector::TcpConnector
source · pub struct TcpConnector<T: RequestPort>(_);
Expand description
Tcp stream connector service
Trait Implementations§
source§impl<T: RequestPort> Default for TcpConnector<T>
impl<T: RequestPort> Default for TcpConnector<T>
source§fn default() -> TcpConnector<T>
fn default() -> TcpConnector<T>
Returns the “default value” for a type. Read more
source§impl<T: RequestPort> Service for TcpConnector<T>
impl<T: RequestPort> Service for TcpConnector<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TcpConnector<T>where
T: RefUnwindSafe,
impl<T> Send for TcpConnector<T>where
T: Send,
impl<T> Sync for TcpConnector<T>where
T: Sync,
impl<T> Unpin for TcpConnector<T>where
T: Unpin,
impl<T> UnwindSafe for TcpConnector<T>where
T: 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