#[repr(u8)]pub enum DecodeTargetIndication {
NotPresent = 0,
Discardable = 1,
Switch = 2,
Required = 3,
}Expand description
How a frame relates to a decode target (AV1 RTP specification, table A.1).
Variants§
NotPresent = 0
-: the frame is not part of the decode target.
Discardable = 1
D: the frame is part of the decode target, and no frame of the target refers to it.
Switch = 2
S: the frame is part of the decode target, and when it is decodable every later frame
of the target is: a forwarder can switch a receiver to the target here.
Required = 3
R: the frame is part of the decode target, and neither of the above.
Implementations§
Source§impl DecodeTargetIndication
impl DecodeTargetIndication
Sourcepub fn from_symbols(symbols: &str) -> Option<Vec<Self>>
pub fn from_symbols(symbols: &str) -> Option<Vec<Self>>
The indications a string of the specification’s symbols stands for, one per decode
target ("SD-"). None if a character is not one of -, D, S, R.
Sourcepub fn is_present(self) -> bool
pub fn is_present(self) -> bool
Whether the frame is part of the decode target at all.
Trait Implementations§
Source§impl Clone for DecodeTargetIndication
impl Clone for DecodeTargetIndication
impl Copy for DecodeTargetIndication
Source§impl Debug for DecodeTargetIndication
impl Debug for DecodeTargetIndication
Source§impl Default for DecodeTargetIndication
impl Default for DecodeTargetIndication
impl Eq for DecodeTargetIndication
Source§impl Hash for DecodeTargetIndication
impl Hash for DecodeTargetIndication
Source§impl PartialEq for DecodeTargetIndication
impl PartialEq for DecodeTargetIndication
impl StructuralPartialEq for DecodeTargetIndication
Auto Trait Implementations§
impl Forget for DecodeTargetIndication
impl Freeze for DecodeTargetIndication
impl Move for DecodeTargetIndication
impl RefUnwindSafe for DecodeTargetIndication
impl Send for DecodeTargetIndication
impl Sync for DecodeTargetIndication
impl Unpin for DecodeTargetIndication
impl UnsafeUnpin for DecodeTargetIndication
impl UnwindSafe for DecodeTargetIndication
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