Struct cubeb_core::StreamParams
source · pub struct StreamParams(/* private fields */);
Implementations§
source§impl StreamParams
impl StreamParams
pub fn as_ptr(&self) -> *mut cubeb_stream_params
Methods from Deref<Target = StreamParamsRef>§
pub fn as_ptr(&self) -> *mut cubeb_stream_params
pub fn format(&self) -> SampleFormat
pub fn rate(&self) -> u32
pub fn channels(&self) -> u32
pub fn layout(&self) -> ChannelLayout
pub fn prefs(&self) -> StreamPrefs
Trait Implementations§
source§impl AsRef<StreamParamsRef> for StreamParams
impl AsRef<StreamParamsRef> for StreamParams
source§fn as_ref(&self) -> &StreamParamsRef
fn as_ref(&self) -> &StreamParamsRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<StreamParamsRef> for StreamParams
impl Borrow<StreamParamsRef> for StreamParams
source§fn borrow(&self) -> &StreamParamsRef
fn borrow(&self) -> &StreamParamsRef
Immutably borrows from an owned value. Read more
source§impl Debug for StreamParams
impl Debug for StreamParams
source§impl Default for StreamParams
impl Default for StreamParams
source§fn default() -> StreamParams
fn default() -> StreamParams
Returns the “default value” for a type. Read more
source§impl Deref for StreamParams
impl Deref for StreamParams
§type Target = StreamParamsRef
type Target = StreamParamsRef
The resulting type after dereferencing.
source§fn deref(&self) -> &StreamParamsRef
fn deref(&self) -> &StreamParamsRef
Dereferences the value.
source§impl DerefMut for StreamParams
impl DerefMut for StreamParams
source§fn deref_mut(&mut self) -> &mut StreamParamsRef
fn deref_mut(&mut self) -> &mut StreamParamsRef
Mutably dereferences the value.
source§impl From<cubeb_stream_params> for StreamParams
impl From<cubeb_stream_params> for StreamParams
source§fn from(x: cubeb_stream_params) -> StreamParams
fn from(x: cubeb_stream_params) -> StreamParams
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for StreamParams
impl Send for StreamParams
impl Sync for StreamParams
impl Unpin for StreamParams
impl UnwindSafe for StreamParams
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