#[non_exhaustive]pub enum SessionDataFormat {
Json,
Raw,
}Expand description
FORMAT attribute of #EXT-X-SESSION-DATA (RFC 8216bis §4.4.6.4).
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.
Json
JSON — the default when the attribute (or the whole URI
attribute it qualifies) is absent.
Raw
RAW — the URI names a binary file.
Implementations§
Trait Implementations§
Source§impl Clone for SessionDataFormat
impl Clone for SessionDataFormat
Source§fn clone(&self) -> SessionDataFormat
fn clone(&self) -> SessionDataFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionDataFormat
Source§impl Debug for SessionDataFormat
impl Debug for SessionDataFormat
Source§impl Default for SessionDataFormat
impl Default for SessionDataFormat
Source§fn default() -> SessionDataFormat
fn default() -> SessionDataFormat
Returns the “default value” for a type. Read more
Source§impl Display for SessionDataFormat
impl Display for SessionDataFormat
impl Eq for SessionDataFormat
Source§impl PartialEq for SessionDataFormat
impl PartialEq for SessionDataFormat
impl StructuralPartialEq for SessionDataFormat
Auto Trait Implementations§
impl Freeze for SessionDataFormat
impl RefUnwindSafe for SessionDataFormat
impl Send for SessionDataFormat
impl Sync for SessionDataFormat
impl Unpin for SessionDataFormat
impl UnsafeUnpin for SessionDataFormat
impl UnwindSafe for SessionDataFormat
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