Skip to main content

AvSyncOutcomeRef

Enum AvSyncOutcomeRef 

Source
#[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.

§samples_adjusted: bool

Whether the SDK adjusted the requested sample count.

§

Empty

Synchronization succeeded without samples.

Fields

§samples_adjusted: bool

Whether the SDK adjusted the requested sample count.

§

FormatChanged

The source’s format differs from the request.

Fields

§sample_rate: u32

The current sample rate in hertz.

§num_channels: u32

The current channel count.

§

NoAudioStream

The source currently sends no audio.

§

NoMatchingSamples

No audio matches the requested video timestamp.

Implementations§

Source§

impl AvSyncOutcomeRef<'_>

Source

pub fn to_owned(&self) -> AvSyncOutcome

Copy matched audio into an independently owned outcome. Status-only outcomes allocate nothing.

Trait Implementations§

Source§

impl<'a> Debug for AvSyncOutcomeRef<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.