pub struct Panic { /* private fields */ }Expand description
Represents detailed information about a panic that has occurred within the server.
This struct captures essential details about a panic, such as the message, source code location, and payload. It is used by the server’s panic handling mechanism and passed to the configured panic hook for custom processing.
Implementations§
Source§impl Panic
impl Panic
pub fn get_message(&self) -> &OptionString
pub fn get_location(&self) -> &OptionString
pub fn get_payload(&self) -> &OptionString
Trait Implementations§
impl Eq for Panic
impl StructuralPartialEq for Panic
Auto Trait Implementations§
impl Freeze for Panic
impl RefUnwindSafe for Panic
impl Send for Panic
impl Sync for Panic
impl Unpin for Panic
impl UnwindSafe for Panic
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