Enum CatalogParseError
#[non_exhaustive]pub enum CatalogParseError {
Malformed(Error),
UnsupportedVersion(Option<String>),
DeltaUpdate,
Invalid(String),
}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.
Malformed(Error)
Not JSON, or not an MSF catalog.
UnsupportedVersion(Option<String>)
A version this crate does not understand, or none; draft-ietf-moq-msf-02
§5.1.1 forbids parsing it.
DeltaUpdate
A delta update (§5.1.6).
Invalid(String)
A catalog the draft calls invalid: a malformed name or namespace, a dependency that does not resolve, or a track without a field its packaging and role require.
Trait Implementations§
§impl Debug for CatalogParseError
impl Debug for CatalogParseError
§impl Display for CatalogParseError
impl Display for CatalogParseError
§impl Error for CatalogParseError
impl Error for CatalogParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for CatalogParseError
impl !UnwindSafe for CatalogParseError
impl Freeze for CatalogParseError
impl Send for CatalogParseError
impl Sync for CatalogParseError
impl Unpin for CatalogParseError
impl UnsafeUnpin for CatalogParseError
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