[][src]Struct mock_io::futures::MockStream

pub struct MockStream { /* fields omitted */ }
This is supported on crate feature async-futures only.

Asynchronous mock IO stream

Implementations

impl MockStream[src]

pub async fn connect<'_>(handle: &'_ Handle) -> Result<Self, Error>[src]

Connects to a mock IO listener

pub fn pair() -> (Self, Self)[src]

Creates a pair of connected mock streams

pub fn split(self) -> (ReadHalf, WriteHalf)[src]

Splits the stream into separate read and write halves

Trait Implementations

impl AsyncRead for MockStream[src]

impl AsyncWrite for MockStream[src]

impl Debug for MockStream[src]

impl<'__pin> Unpin for MockStream where
    __Origin<'__pin>: Unpin
[src]

Auto Trait Implementations

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.