[][src]Trait cdrs_async::CDRSTransport

pub trait CDRSTransport: Sized + Read + Write + Send + Sync + Unpin {
    fn close(&mut self, close: Shutdown) -> Result<()>;
fn is_alive(&self) -> bool; }

Generic transport trait which is implemented by transports provided by CDRS.

It requires that implementor had following traits implementations: Sized, Send, Unpin, async Read and Write.

Required methods

fn close(&mut self, close: Shutdown) -> Result<()>

Shuts down the read, write, or both halves of this connection.

fn is_alive(&self) -> bool

Method that checks that transport is alive

Loading content...

Implementors

impl CDRSTransport for TransportTcp[src]

impl CDRSTransport for TransportTls[src]

Loading content...