[][src]Struct async_ringbuffer::Duplex

pub struct Duplex { /* fields omitted */ }

An AsyncRead + AsyncWrite stream, which reads from one ringbuffer, and writes to another.

Methods

impl Duplex[src]

pub fn pair(capacity: usize) -> (Duplex, Duplex)[src]

Create a pair of duplex AsyncRead + AsyncWrite streams, for duplex communication between two entities (eg. client and server).

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

Split duplex AsyncRead + AsyncWrite stream into separate (AsyncRead, AsyncWrite) halves.

Trait Implementations

impl AsyncRead for Duplex[src]

impl AsyncWrite for Duplex[src]

Auto Trait Implementations

impl !RefUnwindSafe for Duplex

impl !Send for Duplex

impl !Sync for Duplex

impl Unpin for Duplex

impl !UnwindSafe for Duplex

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, 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.