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§
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.