pub enum DeviceEvent {
AudioRouteChanged {
outputs: Vec<AudioOutput>,
reason: AudioRouteReason,
},
AudioInterruption {
began: bool,
},
CaptureFailed {
device: CaptureDevice,
reason: CaptureFailure,
},
}Expand description
Things that happen to the device mid-call and explain what the media did next. Not state
(see DeviceState): each one is a record with a display body.
Variants§
AudioRouteChanged
The audio output route changed.
Fields
§
outputs: Vec<AudioOutput>The outputs now in use, in platform order; sent in lk.device.audio_route.outputs.
§
reason: AudioRouteReasonWhy the route changed; sent in lk.device.audio_route.reason.
AudioInterruption
A phone call, Siri, another app taking audio focus: began, then the matching ended.
CaptureFailed
A capture device could not be, or stay, used.
Fields
§
device: CaptureDeviceThe device that failed; sent in lk.device.capture.device.
§
reason: CaptureFailureWhy it failed; sent in lk.device.capture.reason.
Trait Implementations§
Source§impl Clone for DeviceEvent
impl Clone for DeviceEvent
Source§impl Debug for DeviceEvent
impl Debug for DeviceEvent
impl Eq for DeviceEvent
Source§impl From<DeviceEvent> for TelemetryEvent
impl From<DeviceEvent> for TelemetryEvent
Source§fn from(event: DeviceEvent) -> Self
fn from(event: DeviceEvent) -> Self
The SPEC.md event for a device event, with its display body.
Source§impl PartialEq for DeviceEvent
impl PartialEq for DeviceEvent
impl StructuralPartialEq for DeviceEvent
Auto Trait Implementations§
impl Forget for DeviceEvent
impl Freeze for DeviceEvent
impl Move for DeviceEvent
impl RefUnwindSafe for DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Unpin for DeviceEvent
impl UnsafeUnpin 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