pub trait IntoBytes<ViaProtocol>: Sized {
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>;
}
Expand description
Convert to bytes from a native struct, via the given protocol.
pub trait IntoBytes<ViaProtocol>: Sized {
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>;
}
Convert to bytes from a native struct, via the given protocol.