#[non_exhaustive]#[repr(i32)]pub enum AVMediaType {
AVMEDIA_TYPE_UNKNOWN = -1,
AVMEDIA_TYPE_VIDEO = 0,
AVMEDIA_TYPE_AUDIO = 1,
AVMEDIA_TYPE_DATA = 2,
AVMEDIA_TYPE_SUBTITLE = 3,
AVMEDIA_TYPE_ATTACHMENT = 4,
AVMEDIA_TYPE_NB = 5,
}
Expand description
@addtogroup lavu_media Media Type @brief Media Type
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AVMEDIA_TYPE_UNKNOWN = -1
< Usually treated as AVMEDIA_TYPE_DATA
AVMEDIA_TYPE_VIDEO = 0
AVMEDIA_TYPE_AUDIO = 1
AVMEDIA_TYPE_DATA = 2
< Opaque data information usually continuous
AVMEDIA_TYPE_SUBTITLE = 3
AVMEDIA_TYPE_ATTACHMENT = 4
< Opaque data information usually sparse
AVMEDIA_TYPE_NB = 5
Trait Implementations§
Source§impl Clone for AVMediaType
impl Clone for AVMediaType
Source§fn clone(&self) -> AVMediaType
fn clone(&self) -> AVMediaType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AVMediaType
impl Debug for AVMediaType
Source§impl Hash for AVMediaType
impl Hash for AVMediaType
Source§impl PartialEq for AVMediaType
impl PartialEq for AVMediaType
impl Copy for AVMediaType
impl Eq for AVMediaType
impl StructuralPartialEq for AVMediaType
Auto Trait Implementations§
impl Freeze for AVMediaType
impl RefUnwindSafe for AVMediaType
impl Send for AVMediaType
impl Sync for AVMediaType
impl Unpin for AVMediaType
impl UnwindSafe for AVMediaType
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