pub enum CliError {
Show 13 variants
CachePartial,
CacheInvalid,
Io(Error),
Encode(EncodeError),
Harness(HarnessError),
Inspect(InspectError),
DaemonExited(String),
NoRunningDaemon,
Participant(String),
PromptStdin(PromptStdinError),
SessionNotFound(String),
ForegroundOwnershipUnconfirmed {
message: String,
diagnostic: ForegroundRestorationDiagnostic,
},
TerminalOutputFailed(String),
}Expand description
Errors returned by the CLI.
Variants§
CachePartial
Offline cache analysis produced useful output with missing evidence.
CacheInvalid
Offline cache invocation or required schema could not be inspected.
Io(Error)
Encode(EncodeError)
Harness(HarnessError)
Inspect(InspectError)
DaemonExited(String)
NoRunningDaemon
Participant(String)
PromptStdin(PromptStdinError)
SessionNotFound(String)
ForegroundOwnershipUnconfirmed
The attachment stopped because terminal foreground ownership is unconfirmed.
Fields
§
diagnostic: ForegroundRestorationDiagnosticBounded private restoration diagnostic written by persistent UIs.
TerminalOutputFailed(String)
The attachment stopped after its first reported terminal output failure.
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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<HarnessError> for CliError
impl From<HarnessError> for CliError
Source§fn from(source: HarnessError) -> Self
fn from(source: HarnessError) -> Self
Converts to this type from the input type.
Source§impl From<InspectError> for CliError
impl From<InspectError> for CliError
Source§fn from(source: InspectError) -> Self
fn from(source: InspectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CliError
impl !UnwindSafe for CliError
impl Freeze for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
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