[][src]Struct async_tungstenite::tokio::TokioAdapter

pub struct TokioAdapter<T>(pub T);

Adapter for tokio::io::AsyncRead and tokio::io::AsyncWrite to provide the variants from the futures crate and the other way around.

Trait Implementations

impl<T: AsyncRead> AsyncRead for TokioAdapter<T>[src]

impl<T: AsyncRead> AsyncRead for TokioAdapter<T>[src]

impl<T: AsyncWrite> AsyncWrite for TokioAdapter<T>[src]

impl<T: AsyncWrite> AsyncWrite for TokioAdapter<T>[src]

impl<T: Clone> Clone for TokioAdapter<T>[src]

impl<T: Debug> Debug for TokioAdapter<T>[src]

impl<T> PinnedDrop for TokioAdapter<T>[src]

impl<'pin, T> Unpin for TokioAdapter<T> where
    __TokioAdapter<'pin, T>: Unpin
[src]

impl<T> UnsafeUnpin for TokioAdapter<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for TokioAdapter<T> where
    T: RefUnwindSafe

impl<T> Send for TokioAdapter<T> where
    T: Send

impl<T> Sync for TokioAdapter<T> where
    T: Sync

impl<T> UnwindSafe for TokioAdapter<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

impl<R> AsyncWriteExt for R where
    R: 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]