Enum jsonrpsee_ws_client::stream::EitherStream[][src]

pub enum EitherStream<S, T> {
    Plain(S),
    Tls(T),
}

Stream to represent either a unencrypted or encrypted socket stream.

Variants

Plain(S)

Unencrypted socket stream.

Tls(T)

Encrypted socket stream.

Trait Implementations

impl<S, T> AsyncRead for EitherStream<S, T> where
    S: AsyncRead,
    T: AsyncRead, 
[src]

impl<S, T> AsyncWrite for EitherStream<S, T> where
    S: AsyncWrite,
    T: AsyncWrite, 
[src]

impl<S: Clone, T: Clone> Clone for EitherStream<S, T>[src]

impl<S: Copy, T: Copy> Copy for EitherStream<S, T>[src]

impl<S: Debug, T: Debug> Debug for EitherStream<S, T>[src]

impl<'pin, S, T> Unpin for EitherStream<S, T> where
    __EitherStream<'pin, S, T>: Unpin
[src]

Auto Trait Implementations

impl<S, T> RefUnwindSafe for EitherStream<S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<S, T> Send for EitherStream<S, T> where
    S: Send,
    T: Send

impl<S, T> Sync for EitherStream<S, T> where
    S: Sync,
    T: Sync

impl<S, T> UnwindSafe for EitherStream<S, T> where
    S: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReadExt for T where
    T: AsyncRead + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WriteExt for T where
    T: AsyncWrite + ?Sized
[src]