pub struct VideoInfo {
pub format: StreamFormat,
pub stream: u16,
pub stream_type: String,
pub pixel: Pixel,
pub size: FrameSize,
pub fps: Option<f64>,
pub frames: Option<u64>,
pub cost: Duration,
/* private fields */
}Fields§
§format: StreamFormat§stream: u16§stream_type: String§pixel: Pixel§size: FrameSize§fps: Option<f64>§frames: Option<u64>§cost: DurationImplementations§
Source§impl VideoInfo
impl VideoInfo
pub fn stream(self, stream: u16) -> Self
pub fn stream_type(self, stream_type: String) -> Self
pub fn insert(self, key: String, val: String) -> Self
pub fn size<I: Into<isize>>(self, w: I, h: I) -> Self
pub fn get_handler_name(&self) -> String
pub fn get_title(&self) -> String
pub fn get_mimetype(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VideoInfo
impl<'de> Deserialize<'de> for VideoInfo
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 VideoInfo
impl RefUnwindSafe for VideoInfo
impl Send for VideoInfo
impl Sync for VideoInfo
impl Unpin for VideoInfo
impl UnsafeUnpin for VideoInfo
impl UnwindSafe for VideoInfo
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