pub enum CheckSourceError {
Spawn {
source: Error,
},
Output(String),
Timeout {
secs: u64,
},
Other(Box<dyn Error + Send + Sync>),
}Expand description
Typed error for CheckSource::run. Covers runtime-level failures only;
semantic failures (lint hits, test failures) ride inside Verdict::Fail.
Use CheckSourceError::Other for impl-specific errors that don’t fit the
predefined variants.
Variants§
Trait Implementations§
Source§impl Debug for CheckSourceError
impl Debug for CheckSourceError
Source§impl Display for CheckSourceError
impl Display for CheckSourceError
Source§impl Error for CheckSourceError
impl Error for CheckSourceError
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<CheckSourceError> for KlaspError
impl From<CheckSourceError> for KlaspError
Source§fn from(source: CheckSourceError) -> Self
fn from(source: CheckSourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CheckSourceError
impl !RefUnwindSafe for CheckSourceError
impl Send for CheckSourceError
impl Sync for CheckSourceError
impl Unpin for CheckSourceError
impl UnsafeUnpin for CheckSourceError
impl !UnwindSafe for CheckSourceError
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