#[non_exhaustive]pub enum Error {
Show 26 variants
RemoteError(RemoteError),
GLibError(Error),
ImageSource(Error),
NixError(Errno),
StdIoError {
err: Arc<Error>,
info: String,
},
DbusError(Error),
InternalCommunicationCanceled,
NoLoadersConfigured(Config),
UnknownImageFormat(String, Config),
UnknownContentType(String),
PrematureExit {
status: ExitStatus,
cmd: String,
},
ConversionTooLargerError,
SpawnError {
cmd: String,
err: Arc<Error>,
},
SpawnErrorNotFound {
cmd: String,
err: Arc<Error>,
},
TextureWrongSize {
texture_size: usize,
frame: String,
},
TextureTooLarge,
StrideTooSmall(String),
WidgthOrHeightZero(String),
MemFd(Arc<Error>),
Seccomp(Arc<SeccompError>),
IccProfile(Error),
Canceled(Option<String>),
Editing(Error),
TransferredStream,
MathError(MathError),
CommonError(Error),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RemoteError(RemoteError)
GLibError(Error)
ImageSource(Error)
NixError(Errno)
StdIoError
DbusError(Error)
InternalCommunicationCanceled
NoLoadersConfigured(Config)
UnknownImageFormat(String, Config)
UnknownContentType(String)
PrematureExit
ConversionTooLargerError
SpawnError
SpawnErrorNotFound
TextureWrongSize
TextureTooLarge
StrideTooSmall(String)
WidgthOrHeightZero(String)
MemFd(Arc<Error>)
Seccomp(Arc<SeccompError>)
IccProfile(Error)
Canceled(Option<String>)
Editing(Error)
TransferredStream
MathError(MathError)
CommonError(Error)
Implementations§
Source§impl Error
impl Error
Sourcepub fn unsupported_format(&self) -> Option<String>
pub fn unsupported_format(&self) -> Option<String>
Returns if the error is related to unsupported formats.
Return the mime type of the unsupported format or None if the error
is unrelated to unsupported formats.
pub fn is_out_of_memory(&self) -> bool
pub fn is_no_more_frames(&self) -> bool
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<DimensionTooLargerError> for Error
impl From<DimensionTooLargerError> for Error
Source§fn from(_err: DimensionTooLargerError) -> Self
fn from(_err: DimensionTooLargerError) -> Self
Converts to this type from the input type.
Source§impl From<RemoteError> for Error
impl From<RemoteError> for Error
Source§fn from(source: RemoteError) -> Self
fn from(source: RemoteError) -> Self
Converts to this type from the input type.
Source§impl From<SeccompError> for Error
impl From<SeccompError> for Error
Source§fn from(err: SeccompError) -> Self
fn from(err: SeccompError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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§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