pub struct ProbeResult { /* private fields */ }Expand description
Top-level probe result.
Implementations§
Source§impl ProbeResult
impl ProbeResult
Sourcepub fn new(format: FormatInfo, streams: Vec<StreamInfo>) -> Self
pub fn new(format: FormatInfo, streams: Vec<StreamInfo>) -> Self
Create a new result.
Sourcepub fn format(&self) -> &FormatInfo
pub fn format(&self) -> &FormatInfo
Format metadata (container-level details).
Sourcepub fn streams(&self) -> &[StreamInfo]
pub fn streams(&self) -> &[StreamInfo]
All streams reported by ffprobe.
Sourcepub fn first_video(&self) -> Option<&VideoStreamInfo>
pub fn first_video(&self) -> Option<&VideoStreamInfo>
Convenience helper returning first video stream.
Sourcepub fn first_audio(&self) -> Option<&AudioStreamInfo>
pub fn first_audio(&self) -> Option<&AudioStreamInfo>
Convenience helper returning first audio stream.
Trait Implementations§
Source§impl Clone for ProbeResult
impl Clone for ProbeResult
Source§fn clone(&self) -> ProbeResult
fn clone(&self) -> ProbeResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProbeResult
impl RefUnwindSafe for ProbeResult
impl Send for ProbeResult
impl Sync for ProbeResult
impl Unpin for ProbeResult
impl UnwindSafe for ProbeResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more