pub enum UnifiedTransportConnection {
Tcp(TcpStream),
Unix(UnixStream),
TcpTls(ClientTlsStream<TcpStream>),
UnixTls(ClientTlsStream<UnixStream>),
}
Variants§
Tcp(TcpStream)
Unix(UnixStream)
TcpTls(ClientTlsStream<TcpStream>)
UnixTls(ClientTlsStream<UnixStream>)
Trait Implementations§
Source§impl Debug for UnifiedTransportConnection
impl Debug for UnifiedTransportConnection
impl Split for UnifiedTransportConnection
Auto Trait Implementations§
impl !Freeze for UnifiedTransportConnection
impl !RefUnwindSafe for UnifiedTransportConnection
impl !Send for UnifiedTransportConnection
impl !Sync for UnifiedTransportConnection
impl Unpin for UnifiedTransportConnection
impl !UnwindSafe for UnifiedTransportConnection
Blanket Implementations§
Source§impl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
impl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
Source§async fn read_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoBufMut + 'static,
async fn read_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoBufMut + 'static,
Read until buf capacity is fulfilled
Source§async fn read_vectored_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoVecBufMut + 'static,
async fn read_vectored_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoVecBufMut + 'static,
Readv until buf capacity is fulfilled
Source§impl<A> AsyncWriteRentExt for Awhere
A: AsyncWriteRent + ?Sized,
impl<A> AsyncWriteRentExt for Awhere
A: AsyncWriteRent + ?Sized,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Splitable for Twhere
T: Split + AsyncWriteRent,
impl<T> Splitable for Twhere
T: Split + AsyncWriteRent,
Source§type OwnedRead = OwnedReadHalf<T>
type OwnedRead = OwnedReadHalf<T>
Owned Read Split
Source§type OwnedWrite = OwnedWriteHalf<T>
type OwnedWrite = OwnedWriteHalf<T>
Owned Write Split
Source§fn into_split(
self,
) -> (<T as Splitable>::OwnedRead, <T as Splitable>::OwnedWrite)
fn into_split( self, ) -> (<T as Splitable>::OwnedRead, <T as Splitable>::OwnedWrite)
Split into owned parts