pub struct RendererOptions {
pub sample_rate: u32,
pub channels: u8,
}Expand description
Configuration for a PcmRenderer.
Fields§
§sample_rate: u32Output sample rate, in hertz.
channels: u8Output channel count (1 for mono, 2 for stereo).
Implementations§
Trait Implementations§
Source§impl Clone for RendererOptions
impl Clone for RendererOptions
Source§fn clone(&self) -> RendererOptions
fn clone(&self) -> RendererOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RendererOptions
Source§impl Debug for RendererOptions
impl Debug for RendererOptions
Source§impl Default for RendererOptions
impl Default for RendererOptions
impl Eq for RendererOptions
Source§impl PartialEq for RendererOptions
impl PartialEq for RendererOptions
Source§fn eq(&self, other: &RendererOptions) -> bool
fn eq(&self, other: &RendererOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RendererOptions
Auto Trait Implementations§
impl Freeze for RendererOptions
impl RefUnwindSafe for RendererOptions
impl Send for RendererOptions
impl Sync for RendererOptions
impl Unpin for RendererOptions
impl UnsafeUnpin for RendererOptions
impl UnwindSafe for RendererOptions
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