pub enum ImageError {
None,
Download,
Unsupported,
Unknown,
}
Expand description
An error encountered when loading an image.
This type implements Display
with localized messages for the actual
errors, but the implementation crashes if it is called for the None
variant.
Variants§
None
There is no error.
Download
Could not download the image.
Unsupported
The image uses an unsupported format.
Unknown
An unexpected error occurred.
Implementations§
source§impl ImageError
impl ImageError
sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Trait Implementations§
source§impl Clone for ImageError
impl Clone for ImageError
source§fn clone(&self) -> ImageError
fn clone(&self) -> ImageError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageError
impl Debug for ImageError
source§impl Default for ImageError
impl Default for ImageError
source§fn default() -> ImageError
fn default() -> ImageError
Returns the “default value” for a type. Read more
source§impl Display for ImageError
impl Display for ImageError
source§impl From<ErrorCtx> for ImageError
impl From<ErrorCtx> for ImageError
source§impl From<ImageError> for Value
impl From<ImageError> for Value
source§fn from(v: ImageError) -> Self
fn from(v: ImageError) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for ImageError
impl<'a> FromValue<'a> for ImageError
source§type Checker = GenericValueTypeChecker<ImageError>
type Checker = GenericValueTypeChecker<ImageError>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for ImageError
impl HasParamSpec for ImageError
type ParamSpec = ParamSpecEnum
source§type SetValue = ImageError
type SetValue = ImageError
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: ImageError) -> ParamSpecEnumBuilder<'_, ImageError>
fn param_spec_builder() -> Self::BuilderFn
source§impl PartialEq for ImageError
impl PartialEq for ImageError
source§impl StaticType for ImageError
impl StaticType for ImageError
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for ImageError
impl ToValue for ImageError
source§impl TryFromGlib<i32> for ImageError
impl TryFromGlib<i32> for ImageError
source§impl ValueType for ImageError
impl ValueType for ImageError
source§type Type = ImageError
type Type = ImageError
Type to get the
Type
from. Read moreimpl Copy for ImageError
impl Eq for ImageError
impl StructuralPartialEq for ImageError
Auto Trait Implementations§
impl Freeze for ImageError
impl RefUnwindSafe for ImageError
impl Send for ImageError
impl Sync for ImageError
impl Unpin for ImageError
impl UnwindSafe for ImageError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.