pub struct StreamParamsBuilder(/* private fields */);
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 input_params( self, input_params: InputProcessingParams, ) -> 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 Freeze for StreamParamsBuilder
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