pub enum TraceMode {
Off,
ErrorsOnly,
Full,
}Expand description
Runtime collection policy. 运行时追踪收集策略。
Off is the release-safe default for runtime traces. ErrorsOnly
keeps evidence only for a failed result/panic scope, while Full retains
every observed frame, local, and data edge.
Off 是运行时追踪的发布安全默认值;ErrorsOnly 只保留
失败结果或 panic 作用域中的证据;Full 保留全部帧、局部值和数据边。
Variants§
Off
Do not allocate or retain runtime evidence. 不分配也不保留运行时证据。
ErrorsOnly
Retain evidence only when an error scope fails. 只有错误作用域失败时才保留证据。
Full
Retain all observed runtime evidence. 保留全部观察到的运行时证据。
Implementations§
Trait Implementations§
impl Copy for TraceMode
impl Eq for TraceMode
impl StructuralPartialEq for TraceMode
Auto Trait Implementations§
impl Freeze for TraceMode
impl RefUnwindSafe for TraceMode
impl Send for TraceMode
impl Sync for TraceMode
impl Unpin for TraceMode
impl UnsafeUnpin for TraceMode
impl UnwindSafe for TraceMode
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