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