Struct servo_media_audio::decoder::AudioDecoderCallbacks
source · pub struct AudioDecoderCallbacks {
pub eos: Mutex<Option<Box<dyn FnOnce() + Send + 'static>>>,
pub error: Mutex<Option<Box<dyn FnOnce(AudioDecoderError) + Send + 'static>>>,
pub progress: Option<Box<dyn Fn(Box<dyn AsRef<[f32]>>, u32) + Send + Sync + 'static>>,
pub ready: Mutex<Option<Box<dyn FnOnce(u32) + Send + 'static>>>,
}
Fields§
§eos: Mutex<Option<Box<dyn FnOnce() + Send + 'static>>>
§error: Mutex<Option<Box<dyn FnOnce(AudioDecoderError) + Send + 'static>>>
§progress: Option<Box<dyn Fn(Box<dyn AsRef<[f32]>>, u32) + Send + Sync + 'static>>
§ready: Mutex<Option<Box<dyn FnOnce(u32) + Send + 'static>>>
Implementations§
Auto Trait Implementations§
impl !Freeze for AudioDecoderCallbacks
impl !RefUnwindSafe for AudioDecoderCallbacks
impl Send for AudioDecoderCallbacks
impl Sync for AudioDecoderCallbacks
impl Unpin for AudioDecoderCallbacks
impl !UnwindSafe for AudioDecoderCallbacks
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