Skip to main content

TrackInfo

Struct TrackInfo 

Source
pub struct TrackInfo { /* private fields */ }
Expand description

Represents parsed track info.

Implementations§

Source§

impl TrackInfo

Source

pub fn get(&self, tag: TrackInfoTag) -> Option<&EntryValue>

Get value for tag. Different variants of TrackInfoTag may have different value types, please refer to TrackInfoTag.

Source

pub fn gps_info(&self) -> Option<&GPSInfo>

Parsed GPS info, if GpsIso6709 was present in the source. Mirrors Exif::gps_info.

Source

pub fn iter(&self) -> impl Iterator<Item = (TrackInfoTag, &EntryValue)>

Iterate over (tag, value) pairs. The tag is yielded by value because TrackInfoTag is Copy. The parsed GPSInfo is not included here — get it via TrackInfo::gps_info.

Source

pub fn has_embedded_media(&self) -> bool

👎Deprecated since 3.1.0:

no concrete use case in v3.x; always returned false in 3.0.0. Kept as a no-op for source-compat; will be removed if no use case emerges by v4.

Deprecated: 3.0.0 reserved this for “track source also embeds a secondary track” cases (e.g. .mka audio container that also carries video) but the detection was never wired up — the method always returned false. v3.1 drops the symmetric counterpart on the image side (Exif::has_embedded_track) to a content-detected flag, but the track-source variant stays without a real use case, so this remains a no-op for source compatibility only. May be re-introduced if a concrete use case emerges.

Trait Implementations§

Source§

impl Clone for TrackInfo

Source§

fn clone(&self) -> TrackInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TrackInfo

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for TrackInfo

Source§

fn default() -> TrackInfo

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more