#[repr(i32)]pub enum TrackType {
Audio = 0,
Video = 1,
Data = 2,
}
Variants§
Implementations§
Source§impl TrackType
impl TrackType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl<'de> Deserialize<'de> for TrackType
impl<'de> Deserialize<'de> for TrackType
§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 Ord for TrackType
impl Ord for TrackType
Source§impl PartialOrd for TrackType
impl PartialOrd for TrackType
impl Copy for TrackType
impl Eq for TrackType
impl StructuralPartialEq for TrackType
Auto Trait Implementations§
impl Freeze for TrackType
impl RefUnwindSafe for TrackType
impl Send for TrackType
impl Sync for TrackType
impl Unpin for TrackType
impl UnwindSafe for TrackType
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