pub enum TerminationInfo {
    Exit(i64),
    Abort(String),
    UnsupportedInIsolation(String),
    StackedBorrowsUb {
        msg: String,
        help: Option<String>,
        history: Option<TagHistory>,
    },
    Int2PtrWithStrictProvenance,
    Deadlock,
    MultipleSymbolDefinitions {
        link_name: Symbol,
        first: SpanData,
        first_crate: Symbol,
        second: SpanData,
        second_crate: Symbol,
    },
    SymbolShimClashing {
        link_name: Symbol,
        span: SpanData,
    },
}
Expand description

Details of premature program termination.

Variants

Exit(i64)

Abort(String)

UnsupportedInIsolation(String)

StackedBorrowsUb

Fields

msg: String
help: Option<String>
history: Option<TagHistory>

Int2PtrWithStrictProvenance

Deadlock

MultipleSymbolDefinitions

Fields

link_name: Symbol
first: SpanData
first_crate: Symbol
second: SpanData
second_crate: Symbol

SymbolShimClashing

Fields

link_name: Symbol
span: SpanData

Trait Implementations

Formats the value using the given formatter. Read more
If true, emit a hard error instead of going through the CONST_ERR lint

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 168 bytes

Size for each variant:

  • Exit: 8 bytes
  • Abort: 24 bytes
  • UnsupportedInIsolation: 24 bytes
  • StackedBorrowsUb: 168 bytes
  • Int2PtrWithStrictProvenance: 0 bytes
  • Deadlock: 0 bytes
  • MultipleSymbolDefinitions: 44 bytes
  • SymbolShimClashing: 20 bytes