Struct image::error::UnsupportedError [−][src]
pub struct UnsupportedError { /* fields omitted */ }
The implementation for an operation was not provided.
See the variant Unsupported
for more documentation.
Implementations
impl UnsupportedError
[src]
impl UnsupportedError
[src]pub fn from_format_and_kind(
format: ImageFormatHint,
kind: UnsupportedErrorKind
) -> Self
[src]
format: ImageFormatHint,
kind: UnsupportedErrorKind
) -> Self
Create an UnsupportedError
for 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
.
pub fn kind(&self) -> UnsupportedErrorKind
[src]
Returns the corresponding UnsupportedErrorKind
of the error.
pub fn format_hint(&self) -> ImageFormatHint
[src]
Returns the image format associated with this error.
Trait Implementations
impl Display for UnsupportedError
[src]
impl Display for UnsupportedError
[src]impl Error for UnsupportedError
[src]
impl Error for UnsupportedError
[src]impl From<ImageFormatHint> for UnsupportedError
[src]
impl From<ImageFormatHint> for UnsupportedError
[src]