Enum libpulse_binding::stream::PeekResult
source · pub enum PeekResult<'a> {
Empty,
Hole(usize),
Data(&'a [u8]),
}
Expand description
Result type for the Stream::peek()
method. See documentation of the method itself for more
information.
Variants§
Empty
No data (Null data pointer and size of 0 returned by PA).
Hole(usize)
Data hole with given size (Null pointer with non-zero size returned by PA).
Data(&'a [u8])
Data available, with slice into memory returned by PA.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PeekResult<'a>
impl<'a> Send for PeekResult<'a>
impl<'a> Sync for PeekResult<'a>
impl<'a> Unpin for PeekResult<'a>
impl<'a> UnwindSafe for PeekResult<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more