Movatterモバイル変換


[0]ホーム

URL:


Module panic

std

Modulepanic 

1.9.0 ·Source
Expand description

Panic support in the standard library.

Structs§

AssertUnwindSafe
A simple wrapper around a type to assert that it is unwind safe.
Location
A struct containing information about the location of a panic.
PanicHookInfo
A struct providing information about a panic.

Enums§

BacktraceStyleExperimental
The configuration for whether and how the default panic hook will captureand display the backtrace.

Traits§

RefUnwindSafe
A marker trait representing types where a shared reference is consideredunwind safe.
UnwindSafe
A marker trait which represents “panic safe” types in Rust.

Functions§

catch_unwind
Invokes a closure, capturing the cause of an unwinding panic if one occurs.
panic_any
Panics the current thread with the given message as the panic payload.
resume_unwind
Triggers a panic without invoking the panic hook.
set_hook
Registers a custom panic hook, replacing the previously registered hook.
take_hook
Unregisters the current panic hook and returns it, registering the default hookin its place.
abort_unwindExperimental
Invokes a closure, aborting if the closure unwinds.
always_abortExperimental
Makes all future panics abort directly without running the panic hook or unwinding.
get_backtrace_styleExperimental
Checks whether the standard library’s panic hook will capture and print abacktrace.
set_backtrace_styleExperimental
Configures whether the default panic hook will capture and display abacktrace.
update_hookExperimental
Atomic combination oftake_hook andset_hook. Use this to replace the panic handler witha new panic handler that does something and then executes the old handler.

Type Aliases§

PanicInfoDeprecated
A struct providing information about a panic.

[8]ページ先頭

©2009-2026 Movatter.jp