pub enum AttributeError {
NotFound(String),
ParamNotFound {
param: String,
attr: String,
},
InvalidParamValue {
param: String,
val: String,
attr: String,
},
UnsupportedFormat {
val: String,
attr: String,
},
UnexpectedTrailingItem {
val: String,
attr: String,
},
Other {
error: String,
attr: String,
},
}Expand description
Attribute error with specific details
Variants§
NotFound(String)
If an Attribute is not found in a media or the session
ParamNotFound
If a parameter is missing in an attribute
InvalidParamValue
If a parameter value is not valid type or not in range
UnsupportedFormat
If an attribute is not in expected format
UnexpectedTrailingItem
If there are more than expected items trailing in the attribute parameters
Other
Unspecified error
Implementations§
Source§impl AttributeError
impl AttributeError
pub fn is_attribute_not_found(&self) -> bool
Trait Implementations§
Source§impl Debug for AttributeError
impl Debug for AttributeError
Source§impl Display for AttributeError
impl Display for AttributeError
impl Eq for AttributeError
Source§impl Error for AttributeError
impl Error for AttributeError
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 PartialEq for AttributeError
impl PartialEq for AttributeError
impl StructuralPartialEq for AttributeError
Auto Trait Implementations§
impl Freeze for AttributeError
impl RefUnwindSafe for AttributeError
impl Send for AttributeError
impl Sync for AttributeError
impl Unpin for AttributeError
impl UnsafeUnpin for AttributeError
impl UnwindSafe for AttributeError
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