pub enum UnifiedTransportConnection {
    Tcp(TcpStream),
    Unix(UnixStream),
    TcpTls(ClientTlsStream<TcpStream>),
    UnixTls(ClientTlsStream<UnixStream>),
}

Variants§

Trait Implementations§

source§

impl AsyncReadRent for UnifiedTransportConnection

source§

async fn read<T: IoBufMut>(&mut self, buf: T) -> BufResult<usize, T>

Same as read(2)
source§

async fn readv<T: IoVecBufMut>(&mut self, buf: T) -> BufResult<usize, T>

Same as readv(2)
source§

impl AsyncWriteRent for UnifiedTransportConnection

source§

async fn write<T: IoBuf>(&mut self, buf: T) -> BufResult<usize, T>

Same as write(2)
source§

async fn writev<T: IoVecBuf>(&mut self, buf: T) -> BufResult<usize, T>

Same as writev(2)
source§

async fn flush(&mut self) -> Result<()>

Flush buffered data if needed
source§

async fn shutdown(&mut self) -> Result<()>

Same as shutdown
source§

impl Debug for UnifiedTransportConnection

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Split for UnifiedTransportConnection

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<A> AsyncReadRentExt for A
where A: AsyncReadRent + ?Sized,

source§

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,

Readv until buf capacity is fulfilled
source§

async fn read_u8(&mut self) -> Result<u8, Error>

Read number in async way
source§

async fn read_u16(&mut self) -> Result<u16, Error>

Read number in async way
source§

async fn read_u32(&mut self) -> Result<u32, Error>

Read number in async way
source§

async fn read_u64(&mut self) -> Result<u64, Error>

Read number in async way
source§

async fn read_u128(&mut self) -> Result<u16, Error>

Read number in async way
source§

async fn read_i8(&mut self) -> Result<i8, Error>

Read number in async way
source§

async fn read_i16(&mut self) -> Result<i16, Error>

Read number in async way
source§

async fn read_i32(&mut self) -> Result<i32, Error>

Read number in async way
source§

async fn read_i64(&mut self) -> Result<i64, Error>

Read number in async way
source§

async fn read_i128(&mut self) -> Result<i128, Error>

Read number in async way
source§

async fn read_f32(&mut self) -> Result<f32, Error>

Read number in async way
source§

async fn read_f64(&mut self) -> Result<f64, Error>

Read number in async way
source§

async fn read_u8_le(&mut self) -> Result<u8, Error>

Read number in async way
source§

async fn read_u16_le(&mut self) -> Result<u16, Error>

Read number in async way
source§

async fn read_u32_le(&mut self) -> Result<u32, Error>

Read number in async way
source§

async fn read_u64_le(&mut self) -> Result<u64, Error>

Read number in async way
source§

async fn read_u128_le(&mut self) -> Result<u16, Error>

Read number in async way
source§

async fn read_i8_le(&mut self) -> Result<i8, Error>

Read number in async way
source§

async fn read_i16_le(&mut self) -> Result<i16, Error>

Read number in async way
source§

async fn read_i32_le(&mut self) -> Result<i32, Error>

Read number in async way
source§

async fn read_i64_le(&mut self) -> Result<i64, Error>

Read number in async way
source§

async fn read_i128_le(&mut self) -> Result<i128, Error>

Read number in async way
source§

async fn read_f32_le(&mut self) -> Result<f32, Error>

Read number in async way
source§

async fn read_f64_le(&mut self) -> Result<f64, Error>

Read number in async way
source§

impl<A> AsyncWriteRentExt for A
where A: AsyncWriteRent + ?Sized,

source§

async fn write_all<T>(&mut self, buf: T) -> (Result<usize, Error>, T)
where T: IoBuf + 'static,

Write all
source§

async fn write_vectored_all<T>(&mut self, buf: T) -> (Result<usize, Error>, T)
where T: IoVecBuf + 'static,

Write vectored all
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Splitable for T
where T: Split + AsyncWriteRent,

§

type OwnedRead = OwnedReadHalf<T>

Owned Read Split
§

type OwnedWrite = OwnedWriteHalf<T>

Owned Write Split
source§

fn into_split( self ) -> (<T as Splitable>::OwnedRead, <T as Splitable>::OwnedWrite)

Split into owned parts
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Typeable for T
where T: Any,

§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> DebugAny for T
where T: Any + Debug,

§

impl<T> UnsafeAny for T
where T: Any,