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:
-
Ok(
CursorSuccess
<T>)
is the next object of typeT
produced by the cursor. In addition to the next object, it also includes aCursorResultContinuation
that can be used to continue the cursor after the last object is returned. -
Err(
CursorError
<T>)
represents an error condition which could be anFdbError
or cursor termination due to in-band or out-of-band cursor termination (NoNextReason
). In both the cases aCursorResultContinuation
is included that can be used to continue the cursor.
Aliased Type§
enum CursorResult<T> {
Ok(CursorSuccess<T>),
Err(CursorError),
}