pub struct ExternalFailure { /* private fields */ }Implementations§
Source§impl ExternalFailure
impl ExternalFailure
pub fn new( status: u8, diagnostic: impl Into<String>, ) -> Result<Self, InvalidExternalStatus>
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 ExternalFailure
impl Clone for ExternalFailure
Source§fn clone(&self) -> ExternalFailure
fn clone(&self) -> ExternalFailure
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 ExternalFailure
impl Debug for ExternalFailure
Source§impl Display for ExternalFailure
impl Display for ExternalFailure
Source§impl Error for ExternalFailure
impl Error for ExternalFailure
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<ExternalFailure> for RunError
impl From<ExternalFailure> for RunError
Source§fn from(failure: ExternalFailure) -> Self
fn from(failure: ExternalFailure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ExternalFailure
impl !UnwindSafe for ExternalFailure
impl Freeze for ExternalFailure
impl Send for ExternalFailure
impl Sync for ExternalFailure
impl Unpin for ExternalFailure
impl UnsafeUnpin for ExternalFailure
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