pub struct LeopardError {
pub status: LeopardErrorStatus,
pub message: String,
pub message_stack: Vec<String>,
}
Fields§
§status: LeopardErrorStatus
§message: String
§message_stack: Vec<String>
Implementations§
Source§impl LeopardError
impl LeopardError
pub fn new(status: LeopardErrorStatus, message: impl Into<String>) -> Self
pub fn new_with_stack( status: LeopardErrorStatus, message: impl Into<String>, message_stack: impl Into<Vec<String>>, ) -> Self
Trait Implementations§
Source§impl Clone for LeopardError
impl Clone for LeopardError
Source§fn clone(&self) -> LeopardError
fn clone(&self) -> LeopardError
Returns a duplicate of the value. Read more
1.0.0 · 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 LeopardError
impl Debug for LeopardError
Source§impl Display for LeopardError
impl Display for LeopardError
Source§impl Error for LeopardError
impl Error for LeopardError
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 LeopardError
impl RefUnwindSafe for LeopardError
impl Send for LeopardError
impl Sync for LeopardError
impl Unpin for LeopardError
impl UnwindSafe for LeopardError
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