pub struct Payload(/* private fields */);Expand description
A panic’s payload, kept whole, with no copy: the box the unwinding
carried, downcast where it holds a &str or a String (what panic!
and the standard library’s panics carry), which moves nothing.
Implementations§
Source§impl Payload
impl Payload
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
The payload’s text, or NON_STRING_PAYLOAD, cut to its first
MESSAGE_BYTES bytes at a code point boundary: a decoder_panic’s
detail.
Sourcepub fn is_cut(&self) -> bool
pub fn is_cut(&self) -> bool
Whether Self::message is cut: the manifest row’s cut.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Payload
impl Forget for Payload
impl Move for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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