pub struct DebugOptions {
pub print: bool,
pub trace: Option<TraceKinds>,
}Expand description
How the debug plugin behaves once installed.
Fields§
§print: boolDump describe() after each plugin installed through
use_plugin. Default true.
trace: Option<TraceKinds>Which trace kinds to log, or None to trace nothing. Default: all
kinds.
Implementations§
Source§impl DebugOptions
impl DebugOptions
Sourcepub fn quiet() -> Self
pub fn quiet() -> Self
Introspection only — no USE: dumps and no tracing. This is what
a test suite that only wants describe() / model() / abnf()
should install.
Sourcepub fn with_print(self, print: bool) -> Self
pub fn with_print(self, print: bool) -> Self
Set the print flag.
Sourcepub fn with_trace(self, kinds: TraceKinds) -> Self
pub fn with_trace(self, kinds: TraceKinds) -> Self
Trace exactly these kinds.
Sourcepub fn without_trace(self) -> Self
pub fn without_trace(self) -> Self
Trace nothing.
Trait Implementations§
Source§impl Clone for DebugOptions
impl Clone for DebugOptions
impl Copy for DebugOptions
Source§impl Debug for DebugOptions
impl Debug for DebugOptions
Source§impl Default for DebugOptions
impl Default for DebugOptions
impl Eq for DebugOptions
Source§impl PartialEq for DebugOptions
impl PartialEq for DebugOptions
impl StructuralPartialEq for DebugOptions
Auto Trait Implementations§
impl Freeze for DebugOptions
impl RefUnwindSafe for DebugOptions
impl Send for DebugOptions
impl Sync for DebugOptions
impl Unpin for DebugOptions
impl UnsafeUnpin for DebugOptions
impl UnwindSafe for DebugOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.