Skip to main content

CheckpointSink

Trait CheckpointSink 

Source
pub trait CheckpointSink<C>: Send {
    // Required method
    fn checkpoint(&mut self, checkpoint: &C) -> Result<(), String>;
}
Expand description

Application-owned durable sink for one typed accepted-state checkpoint.

Required Methods§

Source

fn checkpoint(&mut self, checkpoint: &C) -> Result<(), String>

Persist one complete checkpoint or return a host-facing failure message.

§Errors

Returns a message when durable checkpoint delivery fails.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C, F> CheckpointSink<C> for F
where F: FnMut(&C) -> Result<(), String> + Send,