pub trait Frame {
Show 13 methods
// Required methods
fn seq(&self) -> u64;
fn pts(&self) -> i64;
fn dts(&self) -> u64;
fn codec(&self) -> Fourcc;
fn flags(&self) -> FrameFlags;
fn timestamp(&self) -> Option<u64>;
fn params(&self) -> impl Iterator<Item = &[u8]>;
fn units(&self) -> impl Iterator<Item = &[u8]>;
// Provided methods
fn is_key_frame(&self) -> bool { ... }
fn is_last_frame(&self) -> bool { ... }
fn has_params(&self) -> bool { ... }
fn has_timestamp(&self) -> bool { ... }
fn units_annexb(&self) -> impl Iterator<Item = &[u8]> { ... }
}
Required Methods§
fn seq(&self) -> u64
fn pts(&self) -> i64
fn dts(&self) -> u64
fn codec(&self) -> Fourcc
fn flags(&self) -> FrameFlags
fn timestamp(&self) -> Option<u64>
fn params(&self) -> impl Iterator<Item = &[u8]>
fn units(&self) -> impl Iterator<Item = &[u8]>
Provided Methods§
fn is_key_frame(&self) -> bool
fn is_last_frame(&self) -> bool
fn has_params(&self) -> bool
fn has_timestamp(&self) -> bool
fn units_annexb(&self) -> impl Iterator<Item = &[u8]>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.