Struct LimitError
pub struct LimitError { /* private fields */ }
Completing the operation would have required more resources than allowed.
This is used as an opaque representation for the ImageError::Limits variant. See its
documentation for more information.
Implementations
impl LimitError
fn from_kind(kind: LimitErrorKind) -> SelfConstruct a generic
LimitErrordirectly from a corresponding kind.fn kind(&self) -> LimitErrorKindReturns the corresponding
LimitErrorKindof the error.
Trait Implementations
impl Debug for LimitError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for LimitError
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>
impl Error for LimitError
impl From<LimitErrorKind> for LimitError
fn from(kind: LimitErrorKind) -> Self
Auto Trait Implementations
impl Freeze for LimitError
impl RefUnwindSafe for LimitError
impl Send for LimitError
impl Sync for LimitError
impl Unpin for LimitError
impl UnsafeUnpin for LimitError
impl UnwindSafe for LimitError
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for LimitError
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for LimitError
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for LimitError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for LimitError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for LimitError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for LimitError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for LimitError
impl<T> Pointable for LimitError
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 LimitError
where
T: ?Sized,
impl<T> ToString for LimitError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for LimitError
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 LimitError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for LimitError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>