pub trait ShareFs:
Sized
+ Write
+ Read {
// Provided methods
fn send_eof(&mut self) -> Result<()> { ... }
fn send_msg<T: AsRef<str>>(&mut self, value: T) -> Result<()> { ... }
fn receive<W: Write>(&mut self, stdout: &mut W) -> Result<bool> { ... }
fn send_info<T: AsRef<str>>(&mut self, _name: T) -> Result<()> { ... }
fn send_file<P: AsRef<Path>, W: Write>(
&mut self,
file: P,
stdout: &mut W,
) -> Result<()> { ... }
}Provided Methods§
fn send_eof(&mut self) -> Result<()>
fn send_msg<T: AsRef<str>>(&mut self, value: T) -> Result<()>
fn receive<W: Write>(&mut self, stdout: &mut W) -> Result<bool>
fn send_info<T: AsRef<str>>(&mut self, _name: T) -> Result<()>
fn send_file<P: AsRef<Path>, W: Write>( &mut self, file: P, stdout: &mut W, ) -> Result<()>
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.