pub enum SampleBuffer<'a> {
Shm(SampleMut<'a>),
Heap(Vec<u8>),
}Expand description
Where an OutputSample’s bytes live.
Variants§
Shm(SampleMut<'a>)
A shared-memory ring slot: writing here copies nothing (§6.2).
Heap(Vec<u8>)
An owned heap buffer, published inline on the daemon path.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for SampleBuffer<'a>
impl<'a> Freeze for SampleBuffer<'a>
impl<'a> RefUnwindSafe for SampleBuffer<'a>
impl<'a> Send for SampleBuffer<'a>
impl<'a> Sync for SampleBuffer<'a>
impl<'a> Unpin for SampleBuffer<'a>
impl<'a> UnsafeUnpin for SampleBuffer<'a>
Blanket Implementations§
impl<T> Allocation for T
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