pub trait BinaryDeserializerwhere
Self: Sized,{
// Required method
fn deserialize_binary<R: Sized, V: BinarySerializer<R>>(
self,
serializer: V,
) -> Result<R>;
// Provided method
fn into_event(self) -> Result<Event> { ... }
}Expand description
Deserializer trait for a Message that can be encoded as binary mode.
Required Methods§
Sourcefn deserialize_binary<R: Sized, V: BinarySerializer<R>>(
self,
serializer: V,
) -> Result<R>
fn deserialize_binary<R: Sized, V: BinarySerializer<R>>( self, serializer: V, ) -> Result<R>
Deserialize the message to BinarySerializer.
Provided Methods§
Sourcefn into_event(self) -> Result<Event>
fn into_event(self) -> Result<Event>
Convert this Message to Event.
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.