[][src]Struct simple_wal::LogEntry

pub struct LogEntry<'l> { /* fields omitted */ }

An entry in the log.

Ownership of this struct represents that the file has been seeked to the start of the log entry.

Implementations

impl<'l> LogEntry<'l>[src]

pub fn index(&self) -> u64[src]

pub fn read_to_next<W: Write>(
    self,
    write: &mut W
) -> Result<Option<LogEntry<'l>>, LogError>
[src]

Reads into the io::Write and returns the next log entry if in-bounds.

pub fn seek(self, to_index: u64) -> Result<LogEntry<'l>, LogError>[src]

Seek forwards to the index. Only forwards traversal is allowed.

Auto Trait Implementations

impl<'l> RefUnwindSafe for LogEntry<'l>

impl<'l> Send for LogEntry<'l>

impl<'l> Sync for LogEntry<'l>

impl<'l> Unpin for LogEntry<'l>

impl<'l> !UnwindSafe for LogEntry<'l>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,