Enum cpal::BufferSize
source · pub enum BufferSize {
Default,
Fixed(FrameCount),
}
Expand description
The buffer size used by the device.
Default
is used when no specific buffer size is set and uses the default
behavior of the given host. Note, the default buffer size may be surprisingly
large, leading to latency issues. If low latency is desired, Fixed(FrameCount)
should be used in accordance with the SupportedBufferSize
range produced by
the SupportedStreamConfig
API.
Variants§
Default
Fixed(FrameCount)
Trait Implementations§
source§impl Clone for BufferSize
impl Clone for BufferSize
source§fn clone(&self) -> BufferSize
fn clone(&self) -> BufferSize
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BufferSize
impl Debug for BufferSize
source§impl PartialEq for BufferSize
impl PartialEq for BufferSize
source§fn eq(&self, other: &BufferSize) -> bool
fn eq(&self, other: &BufferSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BufferSize
impl Eq for BufferSize
impl StructuralEq for BufferSize
impl StructuralPartialEq for BufferSize
Auto Trait Implementations§
impl RefUnwindSafe for BufferSize
impl Send for BufferSize
impl Sync for BufferSize
impl Unpin for BufferSize
impl UnwindSafe for BufferSize
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