Skip to main content

NodeJournal

Trait NodeJournal 

Source
pub trait NodeJournal: Send + Sync {
    // Required method
    fn replay_after(
        &self,
        node_id: &str,
        channel_id: u32,
        after: u64,
        limit: usize,
    ) -> Result<Vec<JournalEntry>, JournalError>;
}
Expand description

C2-side handle to ask a connected node for a journal slice.

Required Methods§

Source

fn replay_after( &self, node_id: &str, channel_id: u32, after: u64, limit: usize, ) -> Result<Vec<JournalEntry>, JournalError>

Return entries with seq > after up to limit, oldest first.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§