pub enum Error {
SelectorNotFound {
selector: String,
},
TargetNotVisible {
target: Arc<dyn Debug + Send + Sync>,
},
IOFailed(Arc<Error>),
PngDecodingFailed(Arc<DecodingError>),
PngEncodingFailed(Arc<EncodingError>),
IceParsingFailed {
file: PathBuf,
error: ParseError,
},
IceTestingFailed {
file: PathBuf,
instruction: Instruction,
},
PresetNotFound {
name: String,
available: Vec<String>,
},
}Expand description
A test error.
Variants§
SelectorNotFound
No matching widget was found for the Selector.
TargetNotVisible
A target matched, but is not visible.
IOFailed(Arc<Error>)
An IO operation failed.
PngDecodingFailed(Arc<DecodingError>)
The decoding of some PNG image failed.
PngEncodingFailed(Arc<EncodingError>)
The encoding of some PNG image failed.
IceParsingFailed
The parsing of an Ice test failed.
IceTestingFailed
The execution of an Ice test failed.
PresetNotFound
The Preset of a program could not be found.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<DecodingError> for Error
impl From<DecodingError> for Error
Source§fn from(error: DecodingError) -> Self
fn from(error: DecodingError) -> Self
Converts to this type from the input type.
Source§impl From<EncodingError> for Error
impl From<EncodingError> for Error
Source§fn from(error: EncodingError) -> Self
fn from(error: EncodingError) -> 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