[][src]Trait safe_nd::SeqAppendOnly

pub trait SeqAppendOnly {
    fn append(
        &mut self,
        entries: Entries,
        last_entries_index: u64
    ) -> Result<()>; }

Common methods for published and unpublished sequenced AppendOnlyData.

Required methods

fn append(&mut self, entries: Entries, last_entries_index: u64) -> Result<()>

Appends new entries.

Returns an error if duplicate entries are present. If the specified last_entries_index does not match the last recorded entries index, an error will be returned.

Loading content...

Implementors

Loading content...