pub struct ProbeResult {
pub format: Option<FormatInfo>,
pub streams: Vec<StreamInfo>,
pub packets: Vec<PacketInfo>,
pub frames: Vec<FrameInfo>,
pub programs: Vec<ProgramInfo>,
pub chapters: Vec<ChapterInfo>,
pub error: Option<ErrorInfo>,
}Expand description
Main probe result structure
Fields§
§format: Option<FormatInfo>Format information
streams: Vec<StreamInfo>Stream information
packets: Vec<PacketInfo>Packet information
frames: Vec<FrameInfo>Frame information
programs: Vec<ProgramInfo>Program information
chapters: Vec<ChapterInfo>Chapter information
error: Option<ErrorInfo>Error information
Implementations§
Source§impl ProbeResult
impl ProbeResult
Sourcepub fn video_streams(&self) -> Vec<&StreamInfo>
pub fn video_streams(&self) -> Vec<&StreamInfo>
Get video streams
Sourcepub fn audio_streams(&self) -> Vec<&StreamInfo>
pub fn audio_streams(&self) -> Vec<&StreamInfo>
Get audio streams
Sourcepub fn subtitle_streams(&self) -> Vec<&StreamInfo>
pub fn subtitle_streams(&self) -> Vec<&StreamInfo>
Get subtitle streams
Sourcepub fn primary_video_stream(&self) -> Option<&StreamInfo>
pub fn primary_video_stream(&self) -> Option<&StreamInfo>
Get the primary video stream
Sourcepub fn primary_audio_stream(&self) -> Option<&StreamInfo>
pub fn primary_audio_stream(&self) -> Option<&StreamInfo>
Get the primary audio stream
Sourcepub fn format_name(&self) -> Option<&str>
pub fn format_name(&self) -> Option<&str>
Get format name
Sourcepub fn format_long_name(&self) -> Option<&str>
pub fn format_long_name(&self) -> Option<&str>
Get format long name
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 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 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