pub struct Connection<R, IO> { /* private fields */ }Expand description
Wraps underlying I/O and the connection request that initiated it.
Implementations§
Source§impl<R, IO> Connection<R, IO>
impl<R, IO> Connection<R, IO>
Source§impl<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§
Source§impl<R, IO> Deref for Connection<R, IO>
impl<R, IO> Deref for Connection<R, IO>
Source§impl<R, IO> DerefMut for Connection<R, IO>
impl<R, IO> DerefMut for Connection<R, IO>
Source§impl<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,
Source§impl<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,
Source§type Response = Connection<R, TlsStream<IO>>
type Response = Connection<R, TlsStream<IO>>
Responses given by the created services.
Source§type Service = TlsConnectorService
type Service = TlsConnectorService
The kind of
Service created by this factory.Source§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.gSource§fn new_service(&self, _: ()) -> Self::Future
fn new_service(&self, _: ()) -> Self::Future
Create and return a new service asynchronously.
Auto Trait Implementations§
impl<R, IO> Freeze for Connection<R, IO>
impl<R, IO> RefUnwindSafe for Connection<R, IO>where
R: RefUnwindSafe,
IO: RefUnwindSafe,
impl<R, IO> Send for Connection<R, IO>
impl<R, IO> Sync for Connection<R, IO>
impl<R, IO> Unpin for Connection<R, IO>
impl<R, IO> UnsafeUnpin for Connection<R, IO>where
R: UnsafeUnpin,
IO: UnsafeUnpin,
impl<R, IO> UnwindSafe for Connection<R, IO>where
R: UnwindSafe,
IO: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more