Skip to main content

IOStream

Trait IOStream 

Source
pub trait IOStream:
    AsyncRead
    + AsyncWrite
    + Unpin { }
Expand description

General trait which implementing type represents something where we can both write to or read from

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> IOStream for T
where T: AsyncRead + AsyncWrite + Unpin,

Auto-impl for types that satisfies the trait IOStream requirements (AsyncRead and AsyncWrite)