Enum libpulse_binding::callbacks::ListResult
source · 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 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> RefUnwindSafe for ListResult<T>where
T: RefUnwindSafe,
impl<T> Send for ListResult<T>where
T: Send,
impl<T> Sync for ListResult<T>where
T: Sync,
impl<T> Unpin for ListResult<T>where
T: Unpin,
impl<T> UnwindSafe for ListResult<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more