pub trait Transport {
// Required methods
fn host(&self) -> &str;
fn whoami(&self) -> Result<String>;
fn export(
&self,
after_seq: u64,
) -> Result<(Box<dyn Read + Send>, Box<dyn Remote>)>;
fn import(&self) -> Result<(Box<dyn Write + Send>, Box<dyn Remote>)>;
}Required Methods§
fn host(&self) -> &str
fn whoami(&self) -> Result<String>
fn export( &self, after_seq: u64, ) -> Result<(Box<dyn Read + Send>, Box<dyn Remote>)>
fn import(&self) -> Result<(Box<dyn Write + Send>, Box<dyn Remote>)>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".