Struct simple_stream::Plain [] [src]

pub struct Plain<S, F> where S: Read + Write, F: Frame {
    // some fields omitted
}

Methods

impl<S, F> Plain<S, F> where S: Read + Write, F: Frame
[src]

fn new(stream: S, frame: F) -> Plain<S, F>

Trait Implementations

impl<S: Clone, F: Clone> Clone for Plain<S, F> where S: Read + Write, F: Frame
[src]

fn clone(&self) -> Plain<S, F>

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

impl<S, F> Blocking for Plain<S, F> where S: Read + Write, F: Frame
[src]

fn b_recv(&mut self) -> Result<Vec<u8>, Error>

fn b_send<T: Any>(&mut self, buf: &[u8], args: &Vec<T>) -> Result<()Error>

impl<S, F> NonBlocking for Plain<S, F> where S: Read + Write, F: Frame
[src]

fn nb_recv(&mut self) -> Result<Vec<Vec<u8>>, Error>

fn nb_send<T: Any>(&mut self, buf: &[u8], args: &Vec<T>) -> Result<()Error>

impl<S, F> AsRawFd for Plain<S, F> where S: Read + Write + AsRawFd, F: Frame
[src]

fn as_raw_fd(&self) -> RawFd

Extracts the raw file descriptor. Read more