1
2
3
4
5
6
7
8
9
pub trait CompletionEventSerializer {
    type CompletedEvent;
    type Output;
    type Error;
    fn serialize_completed_events(
        &mut self,
        completed_events: &[Self::CompletedEvent],
    ) -> Result<Self::Output, Self::Error>;
}