pub enum ReplayMsg {
Record(JournalEntry),
Snapshot {
reply: Sender<Vec<JournalEntry>>,
},
SetMode {
mode: ReplayMode,
},
LoadJournal {
entries: Vec<JournalEntry>,
reply: Sender<()>,
},
ReplayAll,
LoadFromJournal {
from_sequence_nr: u64,
max: u64,
reply: Sender<Result<usize, String>>,
},
}Variants§
Record(JournalEntry)
Snapshot
Fields
§
reply: Sender<Vec<JournalEntry>>SetMode
Fields
§
mode: ReplayModeLoadJournal
Load a previously-recorded journal as the replay source.
Use before sending ReplayAll.
ReplayAll
Stream the loaded journal through the sink. Replies after
every entry has been acknowledged. Only valid in
ReplayMode::Replay.
LoadFromJournal
Pull history from the attached persistence backend and load
it into self.journal for subsequent ReplayAll. Returns
the number of entries loaded. Only available with the
replay cargo feature.
Auto Trait Implementations§
impl Freeze for ReplayMsg
impl !RefUnwindSafe for ReplayMsg
impl Send for ReplayMsg
impl Sync for ReplayMsg
impl Unpin for ReplayMsg
impl UnsafeUnpin for ReplayMsg
impl !UnwindSafe for ReplayMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more