Trait SerializableEvent

Source
pub trait SerializableEvent: Event {
    type Error: CqrsError;

    // Required method
    fn serialize_event_to_buffer(
        &self,
        buffer: &mut Vec<u8>,
    ) -> Result<(), Self::Error>;
}
Expand description

An event that can be serialized to a buffer.

Required Associated Types§

Source

type Error: CqrsError

The error type.

Required Methods§

Source

fn serialize_event_to_buffer( &self, buffer: &mut Vec<u8>, ) -> Result<(), Self::Error>

Serializes the event to the given buffer.

Implementors§