[][src]Struct simulation::deterministic::MemoryStream

pub struct MemoryStream { /* fields omitted */ }

MemoryStream is a unidirectional in-memory byte stream supporting fault injection. Each call to poll with attempt to inject delay faults. Upon the first call to poll, a waker will be registered for a disconnect fault.

Methods

impl MemoryStream[src]

pub fn local_addr(&self) -> SocketAddr[src]

pub fn peer_addr(&self) -> SocketAddr[src]

Trait Implementations

impl TcpStream for MemoryStream[src]

impl Debug for MemoryStream[src]

impl AsyncRead for MemoryStream[src]

impl AsyncWrite for MemoryStream[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,