Enum miniview::errors::MiniViewError
source · pub enum MiniViewError {
EmptyInputPath,
FailedToImport(ImportError),
CliUnableToDetermineInputMode,
SendStopError,
UnableToCreateWindow,
UnableToMapImage,
ViewThreadFailedToJoin,
}
Expand description
The top-level error type
Variants§
EmptyInputPath
Returned in case an empty input path is given
FailedToImport(ImportError)
Returned in case an image can not be loaded from a source
.
CliUnableToDetermineInputMode
Returned if the input mode could not be defined
SendStopError
Returned if inter-thread communication trough a multi-producer single-consumer channel failed
UnableToCreateWindow
Created when it was not possible to create a graphical window
UnableToMapImage
Returned if an image could not be mapped to the texture which is shown by the image view in the window
ViewThreadFailedToJoin
Returned when a thread does not exit properly
Trait Implementations§
source§impl Debug for MiniViewError
impl Debug for MiniViewError
source§impl Display for MiniViewError
impl Display for MiniViewError
source§impl Error for MiniViewError
impl Error for MiniViewError
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()
source§impl From<ImportError> for MiniViewError
impl From<ImportError> for MiniViewError
source§fn from(source: ImportError) -> Self
fn from(source: ImportError) -> Self
Converts to this type from the input type.