Struct actix_tls::connect::Connection
source · [−]pub struct Connection<R, IO> { /* private fields */ }Expand description
Wraps underlying I/O and the connection request that initiated it.
Implementations
sourceimpl<R, IO> Connection<R, IO>
impl<R, IO> Connection<R, IO>
sourceimpl<R, IO> Connection<R, IO>
impl<R, IO> Connection<R, IO>
sourcepub fn into_parts(self) -> (IO, R)
pub fn into_parts(self) -> (IO, R)
Deconstructs into IO and request parts.
sourcepub fn replace_io<IO2>(self, io: IO2) -> (IO, Connection<R, IO2>)
pub fn replace_io<IO2>(self, io: IO2) -> (IO, Connection<R, IO2>)
Replaces underlying IO, returning old IO and new Connection.
Trait Implementations
sourceimpl<R: Debug, IO: Debug> Debug for Connection<R, IO>
impl<R: Debug, IO: Debug> Debug for Connection<R, IO>
sourceimpl<R, IO> Deref for Connection<R, IO>
impl<R, IO> Deref for Connection<R, IO>
sourceimpl<R, IO> DerefMut for Connection<R, IO>
impl<R, IO> DerefMut for Connection<R, IO>
sourceimpl<R, IO> Service<Connection<R, IO>> for TlsConnectorServicewhere
R: Host,
IO: ActixStream,
impl<R, IO> Service<Connection<R, IO>> for TlsConnectorServicewhere
R: Host,
IO: ActixStream,
type Response = Connection<R, TlsStream<IO>>
type Response = Connection<R, TlsStream<IO>>
Responses given by the service.
type Future = ConnectFut<R, IO>
type Future = ConnectFut<R, IO>
The future response value.
sourcefn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready when the service is able to process requests. Read moresourcefn call(&self, connection: Connection<R, IO>) -> Self::Future
fn call(&self, connection: Connection<R, IO>) -> Self::Future
Process the request and return the response asynchronously. Read more
sourceimpl<R, IO> ServiceFactory<Connection<R, IO>> for TlsConnectorwhere
R: Host,
IO: ActixStream + 'static,
impl<R, IO> ServiceFactory<Connection<R, IO>> for TlsConnectorwhere
R: Host,
IO: ActixStream + 'static,
type Response = Connection<R, TlsStream<IO>>
type Response = Connection<R, TlsStream<IO>>
Responses given by the created services.
type Service = TlsConnectorService
type Service = TlsConnectorService
The kind of
Service created by this factory.type Future = Ready<Result<<TlsConnector as ServiceFactory<Connection<R, IO>>>::Service, <TlsConnector as ServiceFactory<Connection<R, IO>>>::InitError>>
type Future = Ready<Result<<TlsConnector as ServiceFactory<Connection<R, IO>>>::Service, <TlsConnector as ServiceFactory<Connection<R, IO>>>::InitError>>
The future of the
Service instance.gsourcefn new_service(&self, _: ()) -> Self::Future
fn new_service(&self, _: ()) -> Self::Future
Create and return a new service asynchronously.
Auto Trait Implementations
impl<R, IO> RefUnwindSafe for Connection<R, IO>where
IO: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, IO> Send for Connection<R, IO>where
IO: Send,
R: Send,
impl<R, IO> Sync for Connection<R, IO>where
IO: Sync,
R: Sync,
impl<R, IO> Unpin for Connection<R, IO>where
IO: Unpin,
R: Unpin,
impl<R, IO> UnwindSafe for Connection<R, IO>where
IO: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more