Skip to main content
JournalConsumer
ferromatch_
journal
0.2.0
Journal
Consumer
Associated Functions
open
open_unverified
Methods
last_sequence
poll
published_sequence
seek_to_end
seek_to_sequence
try_poll
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
Journal
Consumer
Copy item path
pub struct JournalConsumer {
/* private fields */
}
Implementations
§
§
impl
JournalConsumer
pub fn
open
(path: &
Path
) ->
Result
<Self>
pub fn
open_unverified
(path: &
Path
) ->
Result
<Self>
pub fn
seek_to_end
(&mut self) ->
Result
<
()
>
pub fn
seek_to_sequence
(&mut self, sequence:
u64
) ->
Result
<
()
>
pub const fn
last_sequence
(&self) ->
u64
pub fn
poll
(&mut self) ->
Option
<
JournalEntry
>
pub fn
try_poll
(&mut self) ->
Result
<
Option
<
JournalEntry
>,
JournalReadError
>
pub fn
published_sequence
(&self) ->
u64
Auto Trait Implementations
§
§
impl
Freeze
for
JournalConsumer
§
impl
RefUnwindSafe
for
JournalConsumer
§
impl
Send
for
JournalConsumer
§
impl
Sync
for
JournalConsumer
§
impl
Unpin
for
JournalConsumer
§
impl
UnsafeUnpin
for
JournalConsumer
§
impl
UnwindSafe
for
JournalConsumer
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
>