Skip to main content
EventJournal
ferromatch_
journal
0.2.0
Event
Journal
Associated Functions
create
create_with_sync_interval
resume
resume_with_sync_interval
Methods
append
append_batch_atomic
append_unpublished
entries_written
entry_capacity
is_full
sync_pending
Auto Trait Implementations
Freeze
RefUnwindSafe
Send
Sync
Unpin
UnsafeUnpin
UnwindSafe
Blanket Implementations
Any
Borrow<T>
BorrowMut<T>
From<T>
Into<U>
TryFrom<U>
TryInto<U>
In crate ferromatch_
journal
ferromatch_journal
Struct
Event
Journal
Copy item path
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
§
§
impl
Freeze
for
EventJournal
§
impl
RefUnwindSafe
for
EventJournal
§
impl
Send
for
EventJournal
§
impl
Sync
for
EventJournal
§
impl
Unpin
for
EventJournal
§
impl
UnsafeUnpin
for
EventJournal
§
impl
UnwindSafe
for
EventJournal
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
>