pub trait ToPayload:
Sized
+ Send
+ Sync
+ 'static {
type Err: Error;
// Required method
fn to_bytes(&self) -> Result<Vec<u8>, Self::Err>;
}Expand description
Represents a type that can convert to payload
Required Associated Types§
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.