pub struct ProbeResult {
pub format: FormatInfo,
pub streams: Vec<StreamInfo>,
}Expand description
Parsed result of an ffprobe run: container format plus all streams.
Fields§
§format: FormatInfoContainer-level format information.
streams: Vec<StreamInfo>All streams (video, audio, subtitle) found in the file.
Implementations§
Source§impl ProbeResult
impl ProbeResult
Sourcepub fn video_stream(&self) -> Option<&StreamInfo>
pub fn video_stream(&self) -> Option<&StreamInfo>
First video stream, if any.
Sourcepub fn audio_stream(&self) -> Option<&StreamInfo>
pub fn audio_stream(&self) -> Option<&StreamInfo>
First audio stream, if any.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProbeResult
impl Debug for ProbeResult
Source§impl<'de> Deserialize<'de> for ProbeResult
impl<'de> Deserialize<'de> for ProbeResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProbeResult
impl RefUnwindSafe for ProbeResult
impl Send for ProbeResult
impl Sync for ProbeResult
impl Unpin for ProbeResult
impl UnsafeUnpin 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