Struct alsa_sys::_snd_pcm_scope_ops
source · #[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 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