logo
pub enum ListResult<T> {
    Item(T),
    End,
    Error,
}
Expand description

List result instance.

Fetching a list can result in a callback being fired for each list item, and then once more to signal the end of the list having been reached. This type is used to distinguish such state to a closure callback.

Variants

Item(T)

Tuple Fields

0: T

List item

End

End of list reached

Error

Failure, an error occurred

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.