[][src]Enum cpal::BufferSize

pub enum BufferSize {
    Default,
    Fixed(FrameCount),
}

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(BufferSize) should be used in accordance with the SupportedBufferSize range produced by the SupportedStreamConfig API.

Variants

Default
Fixed(FrameCount)

Trait Implementations

impl Clone for BufferSize[src]

impl Debug for BufferSize[src]

impl Eq for BufferSize[src]

impl PartialEq<BufferSize> for BufferSize[src]

impl StructuralEq for BufferSize[src]

impl StructuralPartialEq for BufferSize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.