Struct cubeb_backend::StreamParamsBuilder
source · pub struct StreamParamsBuilder(/* private fields */);
Expand description
Implementations§
source§impl StreamParamsBuilder
impl StreamParamsBuilder
pub fn new() -> StreamParamsBuilder
pub fn format(self, format: SampleFormat) -> StreamParamsBuilder
pub fn rate(self, rate: u32) -> StreamParamsBuilder
pub fn channels(self, channels: u32) -> StreamParamsBuilder
pub fn layout(self, layout: ChannelLayout) -> StreamParamsBuilder
pub fn prefs(self, prefs: StreamPrefs) -> StreamParamsBuilder
pub fn take(&self) -> StreamParams
Trait Implementations§
source§impl Debug for StreamParamsBuilder
impl Debug for StreamParamsBuilder
source§impl Default for StreamParamsBuilder
impl Default for StreamParamsBuilder
source§fn default() -> StreamParamsBuilder
fn default() -> StreamParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for StreamParamsBuilder
impl Send for StreamParamsBuilder
impl Sync for StreamParamsBuilder
impl Unpin for StreamParamsBuilder
impl UnwindSafe for StreamParamsBuilder
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