pub struct InvalidDataContentError {
pub message: String,
pub cause: Option<Box<dyn Error + Send + Sync>>,
}Expand description
Binary or data-URL content could not be decoded.
Fields§
§message: StringExplanation.
cause: Option<Box<dyn Error + Send + Sync>>Underlying decoding error, if any.
Implementations§
Trait Implementations§
Source§impl Debug for InvalidDataContentError
impl Debug for InvalidDataContentError
Source§impl Display for InvalidDataContentError
impl Display for InvalidDataContentError
Source§impl Error for InvalidDataContentError
impl Error for InvalidDataContentError
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<InvalidDataContentError> for FileSourceError
impl From<InvalidDataContentError> for FileSourceError
Source§fn from(source: InvalidDataContentError) -> Self
fn from(source: InvalidDataContentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InvalidDataContentError
impl !UnwindSafe for InvalidDataContentError
impl Freeze for InvalidDataContentError
impl Send for InvalidDataContentError
impl Sync for InvalidDataContentError
impl Unpin for InvalidDataContentError
impl UnsafeUnpin for InvalidDataContentError
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