#[non_exhaustive]pub enum AvSyncOutcomeRef<'a> {
Audio {
frame: AvSyncAudioRef<'a>,
samples_adjusted: bool,
},
Empty {
samples_adjusted: bool,
},
FormatChanged {
sample_rate: u32,
num_channels: u32,
},
NoAudioStream,
NoMatchingSamples,
}Expand description
A synchronization outcome whose audio remains borrowed from the SDK.
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
Matched samples, retained until frame is dropped.
Fields
§
frame: AvSyncAudioRef<'a>The borrowed samples, timing and metadata.
Empty
Synchronization succeeded without samples.
FormatChanged
The source’s format differs from the request.
Fields
NoAudioStream
The source currently sends no audio.
NoMatchingSamples
No audio matches the requested video timestamp.
Implementations§
Source§impl AvSyncOutcomeRef<'_>
impl AvSyncOutcomeRef<'_>
Sourcepub fn to_owned(&self) -> AvSyncOutcome
pub fn to_owned(&self) -> AvSyncOutcome
Copy matched audio into an independently owned outcome. Status-only outcomes allocate nothing.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for AvSyncOutcomeRef<'a>
impl<'a> !Sync for AvSyncOutcomeRef<'a>
impl<'a> Freeze for AvSyncOutcomeRef<'a>
impl<'a> RefUnwindSafe for AvSyncOutcomeRef<'a>
impl<'a> Unpin for AvSyncOutcomeRef<'a>
impl<'a> UnsafeUnpin for AvSyncOutcomeRef<'a>
impl<'a> UnwindSafe for AvSyncOutcomeRef<'a>
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