pub trait WriteNetstring: Shutdown {
// Required methods
fn write_netstring<S: AsRef<str>>(&mut self, value: S) -> Result<()>;
fn flush(&mut self) -> Result<()>;
}
Required Methods§
fn write_netstring<S: AsRef<str>>(&mut self, value: S) -> Result<()>
fn flush(&mut self) -> 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.