pub struct AudioCircularBuffer { /* private fields */ }Implementations§
Source§impl AudioCircularBuffer
impl AudioCircularBuffer
pub fn new(format: SampleFormat, channels: u8, samples: u32) -> Self
pub fn len(&self) -> u32
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> u32
pub fn available(&self) -> u32
pub fn grow(&mut self, samples: u32) -> Result<()>
pub fn write<D>(&mut self, frame: &Frame<'_, D>) -> Result<usize>where
D: FrameDescriptorSpec,
pub fn read<D>(&mut self, frame: &mut Frame<'_, D>) -> Result<usize>where
D: FrameDescriptorSpec,
pub fn clear(&mut self)
Auto Trait Implementations§
impl Freeze for AudioCircularBuffer
impl RefUnwindSafe for AudioCircularBuffer
impl Send for AudioCircularBuffer
impl Sync for AudioCircularBuffer
impl Unpin for AudioCircularBuffer
impl UnwindSafe for AudioCircularBuffer
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more