pub trait Writable<O: Output> {
// Required method
async fn write_to(&self, output: &mut O) -> Result<(), O::Error>;
}Expand description
A type that can be written to an output stream.
This struct is typically implemented by generic structs whenever their fields are also
Writable. In this way, writable types depend on each other and re-use common syntax.
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.