Trait cloudevents::message::BinaryDeserializer

source ·
pub trait BinaryDeserializer
where 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§

source

fn deserialize_binary<R: Sized, V: BinarySerializer<R>>( self, serializer: V, ) -> Result<R>

Deserialize the message to BinarySerializer.

Provided Methods§

source

fn into_event(self) -> Result<Event>

Convert this Message to Event.

Object Safety§

This trait is not object safe.

Implementors§