Trait CDRSTransport

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

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§

Source

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

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

Source

fn is_alive(&self) -> bool

Method that checks that transport is alive

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§