Struct task::PanicInfoOwned
pub struct PanicInfoOwned {
pub payload: Option<Box<dyn Any + Send, Global>>,
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, Global>>
§msg: String
§file: String
§line: u32
§column: u32
Implementations§
§impl PanicInfoOwned
impl PanicInfoOwned
pub fn from_payload(payload: Box<dyn Any + Send, Global>) -> PanicInfoOwned
pub fn from_payload(payload: Box<dyn Any + Send, Global>) -> 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§
§impl Debug for PanicInfoOwned
impl Debug for PanicInfoOwned
§impl Default for PanicInfoOwned
impl Default for PanicInfoOwned
§fn default() -> PanicInfoOwned
fn default() -> PanicInfoOwned
Returns the “default value” for a type. Read more
§impl Display for PanicInfoOwned
impl Display for PanicInfoOwned
§impl<'p> From<&PanicInfo<'p>> for PanicInfoOwned
impl<'p> From<&PanicInfo<'p>> for PanicInfoOwned
§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