pub struct CliErrorView { /* private fields */ }Expand description
Stable error view for command-line tools.
Implementations§
Source§impl CliErrorView
impl CliErrorView
Sourcepub fn from_error(error: &Error) -> Self
pub fn from_error(error: &Error) -> Self
Builds a CLI view from the canonical descriptor catalog.
Builds a CLI view from a shared canonical error allocation.
Sourcepub fn output(&self, verbosity: CliVerbosity) -> CliOutput
pub fn output(&self, verbosity: CliVerbosity) -> CliOutput
Produces the exit code and stderr line from one catalog projection.
Default output contains only the stable code and fixed public message.
Verbose output may append descriptor-approved, bounded diagnostic fields
with secret-bearing values represented only as <redacted>. Neither
mode renders source errors, locations, or backtraces.
Trait Implementations§
Source§impl Clone for CliErrorView
impl Clone for CliErrorView
Source§impl Debug for CliErrorView
impl Debug for CliErrorView
impl Eq for CliErrorView
Source§impl From<&Arc<Error>> for CliErrorView
impl From<&Arc<Error>> for CliErrorView
Source§fn from(error: &SharedError) -> Self
fn from(error: &SharedError) -> Self
Converts to this type from the input type.
Source§impl From<&Error> for CliErrorView
impl From<&Error> for CliErrorView
Source§impl PartialEq for CliErrorView
impl PartialEq for CliErrorView
impl StructuralPartialEq for CliErrorView
Auto Trait Implementations§
impl Freeze for CliErrorView
impl RefUnwindSafe for CliErrorView
impl Send for CliErrorView
impl Sync for CliErrorView
impl Unpin for CliErrorView
impl UnsafeUnpin for CliErrorView
impl UnwindSafe for CliErrorView
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