pub struct CliError { /* private fields */ }Implementations§
Source§impl CliError
impl CliError
pub fn usage(message: impl Into<String>) -> Self
pub fn runtime(message: impl Into<String>) -> Self
pub fn unsupported_platform() -> Self
pub fn timeout(operation: &str, timeout_ms: u64) -> Self
pub fn ax_payload_encode(operation: &str, detail: impl Into<String>) -> Self
pub fn ax_parse_failure(operation: &str, detail: impl Into<String>) -> Self
pub fn ax_contract_failure(operation: &str, detail: impl Into<String>) -> Self
pub fn exit_code(&self) -> u8
pub fn category(&self) -> ErrorCategory
pub fn operation(&self) -> Option<&str>
pub fn hints(&self) -> &[String]
pub fn message(&self) -> &str
pub fn with_hint(self, hint: impl Into<String>) -> Self
pub fn with_operation(self, operation: impl Into<String>) -> Self
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()
Auto Trait Implementations§
impl Freeze for CliError
impl RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
impl UnwindSafe 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