pub trait RemotingSerializable {
type Output;
// Provided methods
fn decode<'a>(bytes: &'a [u8]) -> Self::Output
where Self::Output: Deserialize<'a> { ... }
fn encode(&self) -> Vec<u8>
where Self: Serialize { ... }
}Expand description
A trait for types that can be deserialized from a byte vector.
Required Associated Types§
Provided Methods§
fn encode(&self) -> Vec<u8>where
Self: Serialize,
Object Safety§
This trait is not object safe.