pub struct GlobalInfo {
pub duration: Option<u64>,
pub timebase: Option<Rational64>,
pub streams: Vec<Stream>,
}Expand description
Global media file information.
Fields§
§duration: Option<u64>Duration of a media file.
If None, the duration of a media file is not considered.
timebase: Option<Rational64>Timebase associated to a media file.
If None, the timebase of a media file is not considered.
streams: Vec<Stream>List of streams present in a media file.
Implementations§
Source§impl GlobalInfo
impl GlobalInfo
Sourcepub fn add_stream(&mut self, st: Stream) -> usize
pub fn add_stream(&mut self, st: Stream) -> usize
Adds a stream to the list of streams present in a media file.
Trait Implementations§
Source§impl Clone for GlobalInfo
impl Clone for GlobalInfo
Source§fn clone(&self) -> GlobalInfo
fn clone(&self) -> GlobalInfo
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 GlobalInfo
impl !RefUnwindSafe for GlobalInfo
impl Send for GlobalInfo
impl Sync for GlobalInfo
impl Unpin for GlobalInfo
impl !UnwindSafe for GlobalInfo
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