pub struct FaultMessage { /* private fields */ }Expand description
The message a FaultKind::Panic or FaultKind::AssertFailed carries.
A fault kind alone cannot say what the program stopped for, and panic’s
whole contract is an explicit message (§9.1). The wrapper renders the value
the program passed — through its descriptor, exactly as out would — and
leaves the text here; the host reads it when it renders the fault.
Rendering happens in the wrapper rather than at report time on purpose: the
argument is a GcRef into a heap that the host tears down, so keeping the
reference would make the message outlive what it points at. A String does
not.
Host-managed, like crate::ParseDetail: generated code never reads or
writes it.
Implementations§
Source§impl FaultMessage
impl FaultMessage
Trait Implementations§
Source§impl Debug for FaultMessage
impl Debug for FaultMessage
Source§impl Default for FaultMessage
impl Default for FaultMessage
Source§fn default() -> FaultMessage
fn default() -> FaultMessage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FaultMessage
impl RefUnwindSafe for FaultMessage
impl Send for FaultMessage
impl Sync for FaultMessage
impl Unpin for FaultMessage
impl UnsafeUnpin for FaultMessage
impl UnwindSafe for FaultMessage
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