[][src]Trait cqrs::SerializableEvent

pub trait SerializableEvent: Event {
    type Error: CqrsError;
    fn serialize_event_to_buffer(
        &self,
        buffer: &mut Vec<u8>
    ) -> Result<(), Self::Error>; }

An event that can be serialized to a buffer.

Associated Types

type Error: CqrsError

The error type.

Loading content...

Required methods

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

Serializes the event to the given buffer.

Loading content...

Implementors

Loading content...