Enum std::panic::BacktraceStyle
source · #[non_exhaustive]pub enum BacktraceStyle {
Short,
Full,
Off,
}
🔬This is a nightly-only experimental API. (
panic_backtrace_config
#93346)Expand description
默认 panic 钩子,是否以及如何捕获和显示回溯的配置。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Short
🔬This is a nightly-only experimental API. (
panic_backtrace_config
#93346)打印一个简洁的回溯,理想情况下只包含相关信息。
Full
🔬This is a nightly-only experimental API. (
panic_backtrace_config
#93346)打印包含所有可能信息的回溯。
Off
🔬This is a nightly-only experimental API. (
panic_backtrace_config
#93346)禁用收集和显示回溯。
Trait Implementations§
source§impl Clone for BacktraceStyle
impl Clone for BacktraceStyle
source§fn clone(&self) -> BacktraceStyle
fn clone(&self) -> BacktraceStyle
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moresource§impl Debug for BacktraceStyle
impl Debug for BacktraceStyle
source§impl PartialEq<BacktraceStyle> for BacktraceStyle
impl PartialEq<BacktraceStyle> for BacktraceStyle
impl Copy for BacktraceStyle
impl Eq for BacktraceStyle
impl StructuralEq for BacktraceStyle
impl StructuralPartialEq for BacktraceStyle
Auto Trait Implementations§
impl RefUnwindSafe for BacktraceStyle
impl Send for BacktraceStyle
impl Sync for BacktraceStyle
impl Unpin for BacktraceStyle
impl UnwindSafe for BacktraceStyle
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
从拥有的值中借用。 Read more