[−][src]Trait shh::ShhRead
Trait to read from file.
Unfortunately, the windows implementation needs a little more massaging to read from the pipe,
without completely blocking the thread. This trait effectively gives implementor a little more control
over the reading if they want to inject their own method. Otherwise just call .read()
on the File
.
Required methods
fn shh_read(read_file: &File, buf: &mut [u8]) -> Result<usize>
Read contents of file into buf
. Works the same way as Read