#[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: the stored width stretched by a pixel aspect ratio wider than tall, then turned by the stream’s orientation.
height: u32Displayed height in square pixels: the stored height stretched by a pixel aspect ratio taller than wide, then turned.
frame_rate: Option<FrameRate>The rate its first frames are presented at, as every host measures
it from packet times and rounds it (alpha2_assets::FrameRateEvidence),
when it can be measured. Not the rate a stream declares: a declared
rate is a guess 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