#[non_exhaustive]pub enum AvSyncOutcome {
Audio {
frame: AudioFrame,
samples_adjusted: bool,
},
Empty {
samples_adjusted: bool,
},
FormatChanged {
sample_rate: u32,
num_channels: u32,
},
NoAudioStream,
NoMatchingSamples,
}Expand description
The result of one AvSync::synchronize call.
These are successful audio or expected no-audio states. Native failures
and unknown statuses are returned through crate::Error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Audio
The audio that belongs to the video frame, owned by the caller.
Fields
§
frame: AudioFrameThe audio.
Empty
The synchronization succeeded and there were no samples to return.
FormatChanged
The source’s audio is not at the sample rate the request stated. Nothing was returned; ask again for the reported rate, or automatically.
Fields
NoAudioStream
The source currently sends no audio.
NoMatchingSamples
The source sends audio, but none of it matches the video frame’s time.
Trait Implementations§
Source§impl Clone for AvSyncOutcome
impl Clone for AvSyncOutcome
Auto Trait Implementations§
impl Freeze for AvSyncOutcome
impl RefUnwindSafe for AvSyncOutcome
impl Send for AvSyncOutcome
impl Sync for AvSyncOutcome
impl Unpin for AvSyncOutcome
impl UnsafeUnpin for AvSyncOutcome
impl UnwindSafe for AvSyncOutcome
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