pub enum LoadError {
NoImageLoaders,
NotSupported,
FormatNotSupported {
detected_format: Option<String>,
},
NoMatchingBytesLoader,
NoMatchingImageLoader {
detected_format: Option<String>,
},
NoMatchingTextureLoader,
Loading(String),
}Available on crate feature
egui only.Expand description
Represents a failed attempt at loading an image.
Variants§
NoImageLoaders
Programmer error: There are no image loaders installed.
NotSupported
A specific loader does not support this scheme or protocol.
FormatNotSupported
A specific loader does not support the format of the image.
NoMatchingBytesLoader
Programmer error: Failed to find the bytes for this image because
there was no BytesLoader supporting the scheme.
NoMatchingImageLoader
Programmer error: Failed to parse the bytes as an image because
there was no ImageLoader supporting the format.
NoMatchingTextureLoader
Programmer error: no matching TextureLoader.
Because of the DefaultTextureLoader, this error should never happen.
Loading(String)
Runtime error: Loading was attempted, but failed (e.g. “File not found”).
Implementations§
Trait Implementations§
impl Eq for LoadError
Source§impl Error for LoadError
impl Error for LoadError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl StructuralPartialEq for LoadError
Auto Trait Implementations§
impl Forget for LoadError
impl Freeze for LoadError
impl Move for LoadError
impl RefUnwindSafe for LoadError
impl Send for LoadErrorwhere
RawVecInner: Send,
impl Sync for LoadErrorwhere
RawVecInner: Sync,
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
impl UnwindSafe for LoadErrorwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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 more