Struct simple_stream::Stream
[−]
[src]
pub struct Stream {
// some fields omitted
}Generic wrapper for anything implementing the SStream trait
Methods
impl Stream[src]
Trait Implementations
impl SRecv for Stream[src]
fn recv(&mut self) -> Result<(), Error>
Read bytes from the source into this Receiver's internal buffer. Read more
fn drain_rx_queue(&mut self) -> Vec<Vec<u8>>
Drain the internal queue of recv'd messages, leaving the internal buffer empty. The length of the returned queue should be expected to be 1 when used on a blocking stream, and >= 1 when used on a non-blocking stream. Read more
impl SSend for Stream[src]
fn send(&mut self, buf: &[u8]) -> Result<usize, Error>
Attempt to write bytes to a source, returning how many bytes were written upon success. Read more
impl StreamShutdown for Stream[src]
fn shutdown(&mut self) -> Result<(), Error>
A call to this function will result in the stream source being shutdown and Error values being returned for any further I/O attempted. Read more
impl AsRawFd for Stream[src]
impl Clone for Stream[src]
fn clone(&self) -> Stream
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more