Struct titanium::desktop::gui::libdruid::piet::image_crate::error::LimitError
pub struct LimitError { /* private fields */ }
Expand description
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
impl LimitError
pub fn from_kind(kind: LimitErrorKind) -> LimitError
pub fn from_kind(kind: LimitErrorKind) -> LimitError
Construct a generic LimitError
directly from a corresponding kind.
pub fn kind(&self) -> LimitErrorKind
pub fn kind(&self) -> LimitErrorKind
Returns the corresponding LimitErrorKind
of the error.
Trait Implementations§
§impl Debug for LimitError
impl Debug for LimitError
§impl Display for LimitError
impl Display for LimitError
§impl Error for LimitError
impl Error for LimitError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl RefUnwindSafe for LimitError
impl Send for LimitError
impl Sync for LimitError
impl Unpin for LimitError
impl UnwindSafe for LimitError
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.