pub struct NativeError {
pub step: &'static str,
pub message: String,
pub path: Option<PathBuf>,
}Expand description
A native startup or packaging failure.
step names the part of startup that failed so a host can say where
without parsing the message, and Display is the sentence to show.
Fields§
§step: &'static strWhich part of startup failed: "paths", "listener", "secret",
"assets", "config", "server".
message: StringThe failure, phrased for a person.
path: Option<PathBuf>The path involved, when there was one.
Implementations§
Trait Implementations§
Source§impl Debug for NativeError
impl Debug for NativeError
Source§impl Display for NativeError
impl Display for NativeError
Source§impl Error for NativeError
impl Error for NativeError
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 NativeError
impl RefUnwindSafe for NativeError
impl Send for NativeError
impl Sync for NativeError
impl Unpin for NativeError
impl UnsafeUnpin for NativeError
impl UnwindSafe for NativeError
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