pub trait EncodeMessage {
// Required methods
fn encode(data: Self) -> Vec<u8> ⓘ;
fn decode(data: Vec<u8>) -> StdResult<Self>
where Self: Sized;
}Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".