pub struct PanicData { /* 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 PanicData
impl PanicData
pub fn get_message(&self) -> String
pub fn try_get_message(&self) -> &Option<String>
pub fn get_location(&self) -> String
pub fn try_get_location(&self) -> &Option<String>
pub fn get_payload(&self) -> String
pub fn try_get_payload(&self) -> &Option<String>
Trait Implementations§
impl Eq for PanicData
impl StructuralPartialEq for PanicData
Auto Trait Implementations§
impl Freeze for PanicData
impl RefUnwindSafe for PanicData
impl Send for PanicData
impl Sync for PanicData
impl Unpin for PanicData
impl UnwindSafe for PanicData
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