Trait fifo::splice::SpliceRead
[−]
[src]
pub trait SpliceRead { fn splice_from<T>(&mut self, r: &mut T, bytes: usize) -> Result<usize>
where
T: Read; fn splice_all_from<T>(&mut self, r: &mut T) -> Result<()>
where
T: Read, { ... } }
Copy some bytes directly from another Read
object, without use any temporary buffers.
Required Methods
fn splice_from<T>(&mut self, r: &mut T, bytes: usize) -> Result<usize> where
T: Read,
T: Read,
Copy at most bytes bytes from a Read
r.
Provided Methods
fn splice_all_from<T>(&mut self, r: &mut T) -> Result<()> where
T: Read,
T: Read,
Copy all bytes from a Read
r.
Implementors
impl SpliceRead for Sender