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