ReadWrite

Trait ReadWrite 

Source
pub trait ReadWrite: Read + Write { }
Expand description

A combination of the std::io::Read and std::io::Write traits.

Implementors§

Source§

impl<T> ReadWrite for T
where T: Read + Write,

Blanket implementation of ReadWrite for all types that implement both Read and Write. This makes things such as sockets and files compatible with the ReadWrite abstraction