pub enum DeviceEvent {
OnSetFormat {
frames_per_second: u32,
sample_format: u32,
num_channels: u32,
external_delay: i64,
},
OnSetGain {
current_mute: bool,
current_agc: bool,
current_gain_db: f32,
},
OnBufferCreated {
ring_buffer: Vmo,
num_ring_buffer_frames: u32,
notifications_per_ring: u32,
},
OnStart {
start_time: i64,
},
OnStop {
stop_time: i64,
ring_position: u32,
},
OnPositionNotify {
monotonic_time: i64,
ring_position: u32,
},
}
Variants§
Implementations§
Source§impl DeviceEvent
impl DeviceEvent
pub fn into_on_set_format(self) -> Option<(u32, u32, u32, i64)>
pub fn into_on_set_gain(self) -> Option<(bool, bool, f32)>
pub fn into_on_buffer_created(self) -> Option<(Vmo, u32, u32)>
pub fn into_on_start(self) -> Option<i64>
pub fn into_on_stop(self) -> Option<(i64, u32)>
pub fn into_on_position_notify(self) -> Option<(i64, u32)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceEvent
impl RefUnwindSafe for DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Unpin for DeviceEvent
impl UnwindSafe for DeviceEvent
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