#[repr(C)]pub struct _snd_pcm_scope_ops {
pub enable: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t) -> c_int>,
pub disable: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>,
pub start: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>,
pub stop: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>,
pub update: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>,
pub reset: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>,
pub close: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>,
}
Expand description
#SND_PCM_TYPE_METER scope functions
Fields§
§enable: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t) -> c_int>
\brief Enable and prepare it using current params \param scope scope handle
disable: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>
\brief Disable \param scope scope handle
start: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>
\brief PCM has been started \param scope scope handle
stop: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>
\brief PCM has been stopped \param scope scope handle
update: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>
\brief New frames are present \param scope scope handle
reset: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>
\brief Reset status \param scope scope handle
close: Option<unsafe extern "C" fn(scope: *mut snd_pcm_scope_t)>
\brief PCM is closing \param scope scope handle
Trait Implementations§
Source§impl Clone for _snd_pcm_scope_ops
impl Clone for _snd_pcm_scope_ops
Source§fn clone(&self) -> _snd_pcm_scope_ops
fn clone(&self) -> _snd_pcm_scope_ops
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for _snd_pcm_scope_ops
impl Debug for _snd_pcm_scope_ops
impl Copy for _snd_pcm_scope_ops
Auto Trait Implementations§
impl Freeze for _snd_pcm_scope_ops
impl RefUnwindSafe for _snd_pcm_scope_ops
impl Send for _snd_pcm_scope_ops
impl Sync for _snd_pcm_scope_ops
impl Unpin for _snd_pcm_scope_ops
impl UnwindSafe for _snd_pcm_scope_ops
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)