Type Alias fdb_rl::cursor::CursorResult

source ·
pub type CursorResult<T> = Result<CursorSuccess<T>, CursorError>;
Expand description

Result obtained when Cursor advances.

It represents everything that one can learn each time a Cursor advances. It consists of two variants:

  1. Ok(CursorSuccess<T>) is the next object of type T produced by the cursor. In addition to the next object, it also includes a CursorResultContinuation that can be used to continue the cursor after the last object is returned.

  2. Err(CursorError<T>) represents an error condition which could be an FdbError or cursor termination due to in-band or out-of-band cursor termination (NoNextReason). In both the cases a CursorResultContinuation is included that can be used to continue the cursor.

Aliased Type§

enum CursorResult<T> {
    Ok(CursorSuccess<T>),
    Err(CursorError),
}

Variants§

§1.0.0

Ok(CursorSuccess<T>)

Contains the success value

§1.0.0

Err(CursorError)

Contains the error value