pub struct StreamParamsBuilder(/* private fields */);
Implementations§
Source§impl StreamParamsBuilder
impl StreamParamsBuilder
pub fn new() -> Self
pub fn format(self, format: SampleFormat) -> Self
pub fn rate(self, rate: u32) -> Self
pub fn channels(self, channels: u32) -> Self
pub fn layout(self, layout: ChannelLayout) -> Self
pub fn prefs(self, prefs: StreamPrefs) -> Self
pub fn input_params(self, input_params: InputProcessingParams) -> Self
pub fn take(&self) -> StreamParams
Trait Implementations§
Source§impl Debug for StreamParamsBuilder
impl Debug for StreamParamsBuilder
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