JournalReader

Struct JournalReader 

pub struct JournalReader<R: Read> { /* private fields */ }

Implementations§

§

impl<R: Read> JournalReader<R>

pub fn new(source: R, max_record_size: u32) -> Self

pub fn max_record_size(&self) -> u32

pub fn next(&mut self) -> Result<Option<JournalRecord>>

pub fn position(&self) -> Option<ReaderPosition>

pub fn next_seq(&self) -> u64

pub fn saw_torn_tail(&self) -> bool

pub fn verify_position( source: R, max_record_size: u32, expected: ReaderPosition, ) -> Result<Self>

pub fn from_positioned( source: R, max_record_size: u32, position: ReaderPosition, ) -> Result<Self>

§

impl<R: Read + Seek> JournalReader<R>

pub fn resume( source: R, max_record_size: u32, position: ReaderPosition, ) -> Result<Self>

Trait Implementations§

§

impl<R: Debug + Read> Debug for JournalReader<R>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations§

§

impl<R> Freeze for JournalReader<R>
where R: Freeze,

§

impl<R> RefUnwindSafe for JournalReader<R>
where R: RefUnwindSafe,

§

impl<R> Send for JournalReader<R>
where R: Send,

§

impl<R> Sync for JournalReader<R>
where R: Sync,

§

impl<R> Unpin for JournalReader<R>
where R: Unpin,

§

impl<R> UnwindSafe for JournalReader<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>