pub enum ParseTagValueError {
NotEmpty,
UnexpectedEmpty,
DecimalInteger(ParseNumberError),
DecimalIntegerRange(ParseDecimalIntegerRangeError),
PlaylistType(ParsePlaylistTypeError),
DecimalFloatingPoint(ParseFloatError),
DecimalFloatingPointWithTitle(ParseDecimalFloatingPointWithTitleError),
DateTime(DateTimeSyntaxError),
AttributeList(AttributeListParsingError),
}Expand description
An error found trying to convert a tag value into a different data type needed for the tag.
Variants§
NotEmpty
The tag value is not empty (None) but it should be.
UnexpectedEmpty
The tag value is empty (None) when it should not be.
DecimalInteger(ParseNumberError)
An issue found trying to convert into a decimal integer.
DecimalIntegerRange(ParseDecimalIntegerRangeError)
An issue fouud trying to convert into a decimal integer range (<n>[@<o>]).
PlaylistType(ParsePlaylistTypeError)
An issue found trying to convert into a playlist type enum (EVENT or VOD).
DecimalFloatingPoint(ParseFloatError)
An issue found trying to convert into a decimal floating point number.
DecimalFloatingPointWithTitle(ParseDecimalFloatingPointWithTitleError)
An issue found trying to convert into a decimal floating point number with a UTF-8 title.
DateTime(DateTimeSyntaxError)
An issue found trying to convert into a date/time.
AttributeList(AttributeListParsingError)
An issue found trying to convert into an attribute list.
Trait Implementations§
Source§impl Clone for ParseTagValueError
impl Clone for ParseTagValueError
Source§fn clone(&self) -> ParseTagValueError
fn clone(&self) -> ParseTagValueError
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 ParseTagValueError
impl Debug for ParseTagValueError
Source§impl Display for ParseTagValueError
impl Display for ParseTagValueError
Source§impl Error for ParseTagValueError
impl Error for ParseTagValueError
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()
Source§impl From<AttributeListParsingError> for ParseTagValueError
impl From<AttributeListParsingError> for ParseTagValueError
Source§fn from(value: AttributeListParsingError) -> Self
fn from(value: AttributeListParsingError) -> Self
Converts to this type from the input type.
Source§impl From<DateTimeSyntaxError> for ParseTagValueError
impl From<DateTimeSyntaxError> for ParseTagValueError
Source§fn from(value: DateTimeSyntaxError) -> Self
fn from(value: DateTimeSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<ParseDecimalFloatingPointWithTitleError> for ParseTagValueError
impl From<ParseDecimalFloatingPointWithTitleError> for ParseTagValueError
Source§fn from(value: ParseDecimalFloatingPointWithTitleError) -> Self
fn from(value: ParseDecimalFloatingPointWithTitleError) -> Self
Converts to this type from the input type.
Source§impl From<ParseDecimalIntegerRangeError> for ParseTagValueError
impl From<ParseDecimalIntegerRangeError> for ParseTagValueError
Source§fn from(value: ParseDecimalIntegerRangeError) -> Self
fn from(value: ParseDecimalIntegerRangeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for ParseTagValueError
impl From<ParseFloatError> for ParseTagValueError
Source§fn from(value: ParseFloatError) -> Self
fn from(value: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ParseTagValueError
impl From<ParseNumberError> for ParseTagValueError
Source§fn from(value: ParseNumberError) -> Self
fn from(value: ParseNumberError) -> Self
Converts to this type from the input type.
Source§impl From<ParsePlaylistTypeError> for ParseTagValueError
impl From<ParsePlaylistTypeError> for ParseTagValueError
Source§fn from(value: ParsePlaylistTypeError) -> Self
fn from(value: ParsePlaylistTypeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseTagValueError> for ValidationError
impl From<ParseTagValueError> for ValidationError
Source§fn from(value: ParseTagValueError) -> Self
fn from(value: ParseTagValueError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseTagValueError
impl PartialEq for ParseTagValueError
impl Copy for ParseTagValueError
impl StructuralPartialEq for ParseTagValueError
Auto Trait Implementations§
impl Freeze for ParseTagValueError
impl RefUnwindSafe for ParseTagValueError
impl Send for ParseTagValueError
impl Sync for ParseTagValueError
impl Unpin for ParseTagValueError
impl UnsafeUnpin for ParseTagValueError
impl UnwindSafe for ParseTagValueError
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