Struct UnsupportedError
pub struct UnsupportedError { /* private fields */ }
The implementation for an operation was not provided.
See the variant Unsupported for more documentation.
Implementations
impl UnsupportedError
fn from_format_and_kind(format: ImageFormatHint, kind: UnsupportedErrorKind) -> SelfCreate an
UnsupportedErrorfor an image with details on the unsupported feature.If the operation was not connected to a particular image format then the hint may be
Unknown.fn kind(&self) -> UnsupportedErrorKindReturns the corresponding
UnsupportedErrorKindof the error.fn format_hint(&self) -> ImageFormatHintReturns the image format associated with this error.
Trait Implementations
impl Debug for UnsupportedError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for UnsupportedError
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>
impl Error for UnsupportedError
impl From<ImageFormatHint> for UnsupportedError
fn from(hint: ImageFormatHint) -> Self