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
Auto Trait Implementations
impl Freeze for UnsupportedError
impl RefUnwindSafe for UnsupportedError
impl Send for UnsupportedError
impl Sync for UnsupportedError
impl Unpin for UnsupportedError
impl UnsafeUnpin for UnsupportedError
impl UnwindSafe for UnsupportedError
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for UnsupportedError
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for UnsupportedError
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for UnsupportedError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for UnsupportedError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for UnsupportedError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for UnsupportedError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for UnsupportedError
impl<T> Pointable for UnsupportedError
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for UnsupportedError
where
T: ?Sized,
impl<T> ToString for UnsupportedError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for UnsupportedError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for UnsupportedError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for UnsupportedError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>