Trait libp2prs_traits::SplitEx[][src]

pub trait SplitEx {
    type Reader: ReadEx + Unpin;
    type Writer: WriteEx + Unpin;
    fn split(self) -> (Self::Reader, Self::Writer);
}

SplitEx Trait for read and write separation

Associated Types

type Reader: ReadEx + Unpin[src]

read half

type Writer: WriteEx + Unpin[src]

write half

Loading content...

Required methods

fn split(self) -> (Self::Reader, Self::Writer)[src]

split Self to independent reader and writer

Loading content...

Implementors

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

type Reader = ReadHalf<T>

type Writer = WriteHalf<T>

Loading content...