pub enum OneharnessError {
Show 35 variants
NoSelection,
UnknownHarness {
id: String,
valid: String,
},
NoPrompt,
MultipleStdinPrompts {
count: usize,
},
BatchMultipleHarnesses {
count: usize,
selected: String,
},
BatchResume,
ResumeMultipleHarnesses {
count: usize,
selected: String,
},
ResumeUnsupported {
id: String,
supported: String,
},
ForkUnsupported {
id: String,
supported: String,
},
ModeUnsupported {
id: String,
mode: String,
supported: String,
},
HarnessConfigRead {
path: String,
source: Error,
},
HarnessConfigUnmergeable {
path: String,
message: String,
},
HookUnsupported {
id: String,
},
HookGlobalUnsupported {
id: String,
},
HookGlobalDirMissing {
id: String,
var: &'static str,
},
GlobalSyncOnlyHooks {
id: String,
},
GateUnsupported {
id: String,
},
MockRulesFile {
path: String,
source: Error,
},
MockRulesInvalid {
path: String,
message: String,
},
MockActionUnsupported {
id: String,
action: &'static str,
},
MockDeliveryUnsupported {
id: String,
reason: &'static str,
},
MockPathWhitespace {
path: String,
},
MockSetup {
message: String,
},
HarnessConfigWrite {
path: String,
source: Error,
},
PromptFile {
path: String,
source: Error,
},
SchemaFile {
path: String,
source: Error,
},
Schema(String),
StreamInvalid(String),
ConfigRead {
path: String,
source: Error,
},
ConfigInvalid {
path: String,
message: String,
},
EnvConfigInvalid(String),
BadBinOverride(String),
BadEnv(String),
OutputDir {
path: String,
source: Error,
},
Serialize(Error),
}Variants§
NoSelection
UnknownHarness
NoPrompt
MultipleStdinPrompts
BatchMultipleHarnesses
BatchResume
ResumeMultipleHarnesses
ResumeUnsupported
ForkUnsupported
ModeUnsupported
HarnessConfigRead
HarnessConfigUnmergeable
HookUnsupported
HookGlobalUnsupported
HookGlobalDirMissing
GlobalSyncOnlyHooks
GateUnsupported
MockRulesFile
MockRulesInvalid
MockActionUnsupported
MockDeliveryUnsupported
MockPathWhitespace
MockSetup
HarnessConfigWrite
PromptFile
SchemaFile
Schema(String)
StreamInvalid(String)
ConfigRead
ConfigInvalid
EnvConfigInvalid(String)
BadBinOverride(String)
BadEnv(String)
OutputDir
Serialize(Error)
Trait Implementations§
Source§impl Debug for OneharnessError
impl Debug for OneharnessError
Source§impl Display for OneharnessError
impl Display for OneharnessError
Source§impl Error for OneharnessError
impl Error for OneharnessError
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 OneharnessError
impl !UnwindSafe for OneharnessError
impl Freeze for OneharnessError
impl Send for OneharnessError
impl Sync for OneharnessError
impl Unpin for OneharnessError
impl UnsafeUnpin for OneharnessError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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