Struct simple_stream::nonblocking::secure::Secure [] [src]

pub struct Secure<T: Read + Write> {
    // some fields omitted
}

Methods

impl<T: Read + Write + AsRawFd + StreamShutdown> Secure<T>
[src]

fn new(stream: SslStream<T>) -> Secure<T>

Trait Implementations

impl<T: Clone + Read + Write> Clone for Secure<T>
[src]

fn clone(&self) -> Secure<T>

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<T: Read + Write + AsRawFd> SRecv for Secure<T>
[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<T: Read + Write + AsRawFd> SSend for Secure<T>
[src]

fn send(&mut self, buf: &[u8]) -> Result<usizeError>

Attempt to write bytes to a source, returning how many bytes were written upon success. Read more

impl<T: Read + Write + StreamShutdown> StreamShutdown for Secure<T>
[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<T: Read + Write + AsRawFd> AsRawFd for Secure<T>
[src]

fn as_raw_fd(&self) -> RawFd

Extracts the raw file descriptor. Read more

impl<T: 'static + Read + Write + AsRawFd + Clone + Send + StreamShutdown> SStream for Secure<T>
[src]