#[non_exhaustive]pub enum SessionDataContent {
Value(String),
Uri {
uri: String,
format: SessionDataFormat,
},
}Expand description
The mutually-exclusive VALUE/URI content of #EXT-X-SESSION-DATA
(RFC 8216bis §4.4.6.4: “Each … tag MUST contain either a VALUE or URI
attribute, but not both”).
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.
Value(String)
VALUE — a literal data string.
Uri
URI (+ FORMAT) — a reference to an external resource.
Fields
§
format: SessionDataFormatThe FORMAT attribute — only meaningful here (ignored by the
spec when URI is absent, i.e. for SessionDataContent::Value).
Trait Implementations§
Source§impl Clone for SessionDataContent
impl Clone for SessionDataContent
Source§fn clone(&self) -> SessionDataContent
fn clone(&self) -> SessionDataContent
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 moreSource§impl Debug for SessionDataContent
impl Debug for SessionDataContent
impl Eq for SessionDataContent
Source§impl PartialEq for SessionDataContent
impl PartialEq for SessionDataContent
impl StructuralPartialEq for SessionDataContent
Auto Trait Implementations§
impl Freeze for SessionDataContent
impl RefUnwindSafe for SessionDataContent
impl Send for SessionDataContent
impl Sync for SessionDataContent
impl Unpin for SessionDataContent
impl UnsafeUnpin for SessionDataContent
impl UnwindSafe for SessionDataContent
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