#[non_exhaustive]pub enum RunnerError {
Launch {
program: String,
source: Error,
},
UnsupportedCapability {
capability: &'static str,
},
MissingPipe {
stream: &'static str,
},
WriteStdin {
source: Error,
},
Wait {
source: Error,
},
Kill {
source: Error,
},
ReadPipe {
stream: &'static str,
source: Error,
},
OutputLimitExceeded {
stream: &'static str,
limit: usize,
},
ReaderPanicked {
stream: &'static str,
},
WriterPanicked,
}Expand description
Failure returned by a runner adapter.
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.
Launch
Candidate launch failed.
Fields
UnsupportedCapability
A requested runner capability is unavailable.
MissingPipe
A configured process pipe was unavailable.
WriteStdin
Writing candidate input failed.
Wait
Waiting for the candidate failed.
Kill
Killing a timed-out candidate failed.
ReadPipe
Reading captured output failed.
OutputLimitExceeded
Captured output exceeded an invocation’s configured per-stream limit.
Fields
ReaderPanicked
A background output reader panicked.
WriterPanicked
The background input writer panicked.
Trait Implementations§
Source§impl Debug for RunnerError
impl Debug for RunnerError
Source§impl Display for RunnerError
impl Display for RunnerError
Source§impl Error for RunnerError
impl Error for RunnerError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for RunnerError
impl !UnwindSafe for RunnerError
impl Freeze for RunnerError
impl Send for RunnerError
impl Sync for RunnerError
impl Unpin for RunnerError
impl UnsafeUnpin for RunnerError
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