ReplayCursor
ferro_
journal
0.2.0
Replay
Cursor
Methods
new
next
position
saw_torn_tail
Trait Implementations
Debug
Auto Trait Implementations
Freeze
RefUnwindSafe
Send
Sync
Unpin
UnwindSafe
Blanket Implementations
Any
Borrow<T>
BorrowMut<T>
From<T>
Into<U>
TryFrom<U>
TryInto<U>
In crate ferro_
journal
ferro_journal
Struct
Replay
Cursor
Copy item path
pub struct ReplayCursor<R:
Read
> {
/* private fields */
}
Implementations
§
§
impl<R:
Read
>
ReplayCursor
<R>
pub fn
new
(reader:
JournalReader
<R>, clock:
VirtualClock
) -> Self
pub async fn
next
(&mut self) ->
Result
<
Option
<
JournalRecord
>>
pub fn
saw_torn_tail
(&self) ->
bool
pub fn
position
(&self) ->
Option
<
ReaderPosition
>
Trait Implementations
§
§
impl<R:
Debug
+
Read
>
Debug
for
ReplayCursor
<R>
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
Auto Trait Implementations
§
§
impl<R>
Freeze
for
ReplayCursor
<R>
where R:
Freeze
,
§
impl<R>
RefUnwindSafe
for
ReplayCursor
<R>
where R:
RefUnwindSafe
,
§
impl<R>
Send
for
ReplayCursor
<R>
where R:
Send
,
§
impl<R>
Sync
for
ReplayCursor
<R>
where R:
Sync
,
§
impl<R>
Unpin
for
ReplayCursor
<R>
where R:
Unpin
,
§
impl<R>
UnwindSafe
for
ReplayCursor
<R>
where R:
UnwindSafe
,
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
>