pub struct GetRangeResult { /* private fields */ }
Expand description

Represents the data of a Transaction::get_range. The result might not contains all results specified by Transaction::get_range. A caller can test if the result is complete by either checking GetRangeResult::key_values().more() is true, or checking GetRangeResult::next is not None. If a caller wants to fetch all matching results, they should call Transcation::get_range with following RangeOption returned by GetRangeResult::next. The caller might want to use Transaction::get_ranges which will fetch all results until it finishes.

Implementations§

Returns a clone of the Transaction this get is a part of

Returns the values associated with this get

Returns None if all results are returned, and returns Some(_) if there are more results to fetch. In this case, user can fetch remaining results by calling Transaction::get_range with returned RangeOption.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.