Struct EncodingError
pub struct EncodingError { /* private fields */ }
An error was encountered while encoding an image.
This is used as an opaque representation for the ImageError::Encoding variant. See its
documentation for more information.
Implementations
impl EncodingError
fn new(format: ImageFormatHint, err: impl Into<Box<dyn Error + Send + Sync>>) -> SelfCreate an
EncodingErrorthat stems from an arbitrary error of an underlying encoder.fn from_format_hint(format: ImageFormatHint) -> SelfCreate an
EncodingErrorfor an image format.The error will not contain any further information but is very easy to create.
fn format_hint(&self) -> ImageFormatHintReturn the image format associated with this error.
Trait Implementations
impl Debug for EncodingError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for EncodingError
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>
impl Error for EncodingError
fn source(&self) -> Option<&dyn Error + 'static>