Struct task_struct::PanicInfoOwned
source · pub struct PanicInfoOwned {
pub payload: Option<Box<dyn Any + Send>>,
pub msg: String,
pub file: String,
pub line: u32,
pub column: u32,
}
Expand description
Just like core::panic::PanicInfo
, but with owned String types instead of &str references.
Fields§
§payload: Option<Box<dyn Any + Send>>
§msg: String
§file: String
§line: u32
§column: u32
Implementations§
source§impl PanicInfoOwned
impl PanicInfoOwned
sourcepub fn from_payload(payload: Box<dyn Any + Send>) -> PanicInfoOwned
pub fn from_payload(payload: Box<dyn Any + Send>) -> PanicInfoOwned
Constructs a new PanicInfoOwned
object containing only the given payload
without any location or message info.
Useful for forwarding panic payloads through a catch and resume unwinding sequence.
Trait Implementations§
source§impl Debug for PanicInfoOwned
impl Debug for PanicInfoOwned
source§impl Default for PanicInfoOwned
impl Default for PanicInfoOwned
source§fn default() -> PanicInfoOwned
fn default() -> PanicInfoOwned
Returns the “default value” for a type. Read more
source§impl Display for PanicInfoOwned
impl Display for PanicInfoOwned
source§impl<'p> From<&PanicInfo<'p>> for PanicInfoOwned
impl<'p> From<&PanicInfo<'p>> for PanicInfoOwned
source§fn from(info: &PanicInfo<'_>) -> PanicInfoOwned
fn from(info: &PanicInfo<'_>) -> PanicInfoOwned
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PanicInfoOwned
impl Send for PanicInfoOwned
impl !Sync for PanicInfoOwned
impl Unpin for PanicInfoOwned
impl !UnwindSafe for PanicInfoOwned
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