Enum libpulse_binding::callbacks::ListResult[][src]

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

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

Variants

List item

End of list reached

Failure, an error occurred

Auto Trait Implementations

impl<T> Send for ListResult<T> where
    T: Send

impl<T> Sync for ListResult<T> where
    T: Sync