[][src]Struct libp2prs_websocket::connection::Connection

pub struct Connection<T> { /* fields omitted */ }

Implementations

impl<T> Connection<T> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

pub fn new(
    builder: Builder<T>,
    local_addr: Multiaddr,
    remote_addr: Multiaddr
) -> Self
[src]

Trait Implementations

impl<T> ConnectionInfo for Connection<T> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

impl<T> ReadEx for Connection<T> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

impl<T> SplitEx for Connection<T> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

type Reader = ConnectionReader<T>

read half

type Writer = ConnectionWriter<T>

write half

impl<T> WriteEx for Connection<T> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Connection<T>

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

impl<T> Sync for Connection<T> where
    T: Send

impl<T> Unpin for Connection<T>

impl<T> !UnwindSafe for Connection<T>

Blanket Implementations

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

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> ReadEx for T where
    T: Send + Unpin + AsyncRead
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SplitEx for T where
    T: Send + Unpin + AsyncRead + AsyncWrite
[src]

type Reader = ReadHalf<T>

read half

type Writer = WriteHalf<T>

write half

impl<T> SplittableReadWrite for T where
    T: 'static + SplitEx + ReadEx + WriteEx + Unpin
[src]

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> WriteEx for T where
    T: Send + Unpin + AsyncWrite
[src]