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

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

Item(T)

List item

End

End of list reached

Error

Failure, an error occurred

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]