Struct cubeb_backend::StreamParams
source · [−]pub struct StreamParams(_);Implementations
sourceimpl 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
sourceimpl AsRef<StreamParamsRef> for StreamParams
impl AsRef<StreamParamsRef> for StreamParams
sourcefn as_ref(&self) -> &StreamParamsRef
fn as_ref(&self) -> &StreamParamsRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<StreamParamsRef> for StreamParams
impl Borrow<StreamParamsRef> for StreamParams
sourcefn borrow(&self) -> &StreamParamsRef
fn borrow(&self) -> &StreamParamsRef
Immutably borrows from an owned value. Read more
sourceimpl Debug for StreamParams
impl Debug for StreamParams
sourceimpl Default for StreamParams
impl Default for StreamParams
sourcefn default() -> StreamParams
fn default() -> StreamParams
Returns the “default value” for a type. Read more
sourceimpl Deref for StreamParams
impl Deref for StreamParams
type Target = StreamParamsRef
type Target = StreamParamsRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &StreamParamsRef
fn deref(&self) -> &StreamParamsRef
Dereferences the value.
sourceimpl DerefMut for StreamParams
impl DerefMut for StreamParams
sourcefn deref_mut(&mut self) -> &mut StreamParamsRef
fn deref_mut(&mut self) -> &mut StreamParamsRef
Mutably dereferences the value.
sourceimpl From<cubeb_stream_params> for StreamParams
impl From<cubeb_stream_params> for StreamParams
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more