pub struct AppFailure { /* private fields */ }Implementations§
Source§impl AppFailure
impl AppFailure
pub fn new( status: u8, diagnostic: impl Into<String>, ) -> Result<Self, InvalidAppStatus>
pub const fn exit_status(&self) -> ExitStatus
pub fn diagnostic(&self) -> &str
pub fn with_source<E>(self, source: E) -> Self
Trait Implementations§
Source§impl Clone for AppFailure
impl Clone for AppFailure
Source§fn clone(&self) -> AppFailure
fn clone(&self) -> AppFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppFailure
impl Debug for AppFailure
Source§impl Display for AppFailure
impl Display for AppFailure
Source§impl Error for AppFailure
impl Error for AppFailure
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<AppFailure> for RunError
impl From<AppFailure> for RunError
Source§fn from(failure: AppFailure) -> Self
fn from(failure: AppFailure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AppFailure
impl !UnwindSafe for AppFailure
impl Freeze for AppFailure
impl Send for AppFailure
impl Sync for AppFailure
impl Unpin for AppFailure
impl UnsafeUnpin for AppFailure
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