#[non_exhaustive]pub struct VideoStreamShape {
pub width: u32,
pub height: u32,
pub frame_rate: Option<FrameRate>,
}Expand description
A video stream’s displayed size and frame rate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.width: u32Displayed width in square pixels, after the pixel aspect ratio and orientation.
height: u32Displayed height in square pixels, after the pixel aspect ratio and orientation.
frame_rate: Option<FrameRate>The rate the first frames are presented at, measured from packet times and rounded
(alpha2_assets::FrameRateEvidence), when measurable. Declared rates are not used because
they are guesses for variable-rate media and browsers report none.
Implementations§
Trait Implementations§
Source§impl Clone for VideoStreamShape
impl Clone for VideoStreamShape
Source§impl Debug for VideoStreamShape
impl Debug for VideoStreamShape
Source§impl<'de> Deserialize<'de> for VideoStreamShape
impl<'de> Deserialize<'de> for VideoStreamShape
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
Source§impl PartialEq for VideoStreamShape
impl PartialEq for VideoStreamShape
Source§impl Serialize for VideoStreamShape
impl Serialize for VideoStreamShape
impl StructuralPartialEq for VideoStreamShape
Auto Trait Implementations§
impl Freeze for VideoStreamShape
impl RefUnwindSafe for VideoStreamShape
impl Send for VideoStreamShape
impl Sync for VideoStreamShape
impl Unpin for VideoStreamShape
impl UnsafeUnpin for VideoStreamShape
impl UnwindSafe for VideoStreamShape
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