pub struct FileInfo { /* private fields */ }Expand description
A non-advertising file probe result.
Implementations§
Source§impl FileInfo
impl FileInfo
Sourcepub fn duration(&self) -> FileDuration
pub fn duration(&self) -> FileDuration
Best-known duration and its finalized status.
Sourcepub fn track_count(&self) -> u32
pub fn track_count(&self) -> u32
Total reported track count.
Sourcepub fn video_track_count(&self) -> u32
pub fn video_track_count(&self) -> u32
Reported video track count.
Sourcepub fn audio_track_count(&self) -> u32
pub fn audio_track_count(&self) -> u32
Reported audio track count.
Sourcepub fn metadata_track_count(&self) -> u32
pub fn metadata_track_count(&self) -> u32
Reported metadata track count.
Sourcepub fn source_format(&self) -> Result<&SourceFormat, SdkResultDefect>
pub fn source_format(&self) -> Result<&SourceFormat, SdkResultDefect>
Owned codec/layout information. An unreadable format is withheld with its cause; the remaining event or probe fields are still delivered.
§Errors
The typed SDK-result defect that prevented decoding the format.
Trait Implementations§
impl Eq for FileInfo
impl StructuralPartialEq for FileInfo
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnsafeUnpin for FileInfo
impl UnwindSafe for FileInfo
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