Skip to main content

EventJournal

Struct EventJournal 

pub struct EventJournal { /* private fields */ }

Implementations§

§

impl EventJournal

pub fn create(path: &Path, max_entries: usize) -> Result<Self>

pub fn create_with_sync_interval( path: &Path, max_entries: usize, sync_interval_entries: usize, ) -> Result<Self>

pub fn resume( path: &Path, max_entries: usize, published_sequence: u64, ) -> Result<Self>

pub fn resume_with_sync_interval( path: &Path, max_entries: usize, published_sequence: u64, sync_interval_entries: usize, ) -> Result<Self>

pub fn append(&mut self, entry: &JournalEntry)

pub fn append_unpublished(&mut self, entry: &JournalEntry)

pub fn append_batch_atomic(&mut self, entries: &[JournalEntry]) -> Result<()>

pub fn sync_pending(&mut self) -> Result<()>

pub fn entries_written(&self) -> usize

pub fn entry_capacity(&self) -> usize

pub fn is_full(&self) -> bool

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

§

impl<T> From<T> for T

§

fn from(t: T) -> T

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>