Struct rocksdb::DBWALIterator[][src]

pub struct DBWALIterator { /* fields omitted */ }

Iterates the batches of writes since a given sequence number.

DBWALIterator is returned by DB::get_updates_since() and will return the batches of write operations that have occurred since a given sequence number (see DB::latest_sequence_number()). This iterator cannot be constructed by the application.

The iterator item type is a tuple of (u64, WriteBatch) where the first value is the sequence number of the associated write batch.

Implementations

impl DBWALIterator[src]

pub fn valid(&self) -> bool[src]

Returns true if the iterator is valid. An iterator is invalidated when it reaches the end of its defined range, or when it encounters an error.

To check whether the iterator encountered an error after valid has returned false, use the status method. status will never return an error when valid is true.

pub fn status(&self) -> Result<(), Error>[src]

Returns an error Result if the iterator has encountered an error during operation. When an error is encountered, the iterator is invalidated and valid will return false when called.

Trait Implementations

impl Drop for DBWALIterator[src]

impl Iterator for DBWALIterator[src]

type Item = (u64, WriteBatch)

The type of the elements being iterated over.

Auto Trait Implementations

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.