pub enum Quality {
Auto {
link_bitrate: Option<u64>,
},
Bitrate {
max_bitrate: u64,
},
Original,
Unknown,
}Expand description
What quality a playback is planned for: the viewer’s choice
for this playback. The capabilities’ max_bitrate, the app’s own
limit, stays a ceiling over each.
Variants§
Auto
For the link: LINK_SHARE of what the device measured it
carrying lately, bits per second; None: it has measured nothing.
A playback that stalls is planned again for the link.
Bitrate
At most max_bitrate bits per second, whatever the link: encoded
under it when the file is over it.
Original
The file as it is, whatever the link: converted only for what the device cannot play, and never for the link.
Unknown
A choice this build does not know: treated as Auto with nothing
measured.
Trait Implementations§
impl Copy for Quality
Source§impl<'de> Deserialize<'de> for Quality
impl<'de> Deserialize<'de> for Quality
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
impl Eq for Quality
impl StructuralPartialEq for Quality
Auto Trait Implementations§
impl Freeze for Quality
impl RefUnwindSafe for Quality
impl Send for Quality
impl Sync for Quality
impl Unpin for Quality
impl UnsafeUnpin for Quality
impl UnwindSafe for Quality
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