Trait EventDataWrite
pub trait EventDataWrite {
// Required method
fn write_data(
&self,
w: &mut impl Write,
) -> Result<(), Box<dyn Error + Send + Sync>>;
}Expand description
Trait that can be implemented for a custom data type that is to be written (by a server).
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.