Trait codecs::encoding::format::Serializer

source ·
pub trait Serializer: Encoder<Event, Error = Error> + DynClone + Debug + Send + Sync { }
Expand description

Serialize a structured event into a byte frame.

Implementors§

source§

impl<Encoder> Serializer for Encoder
where Encoder: Encoder<Event, Error = Error> + Clone + Debug + Send + Sync,

Default implementation for Serializers that implement tokio_util::codec::Encoder.