pub struct NullTrace;Expand description
No-op trace sink for benchmarks — zero overhead.
Trait Implementations§
Source§impl TraceSink for NullTrace
impl TraceSink for NullTrace
Source§fn enabled(&self) -> bool
fn enabled(&self) -> bool
Returns false to skip all trace work (timestamp allocation, serialization).
NullTrace returns false; real writers return true (default).
fn emit_runtime_info(&mut self, _: &str, _: &str, _: &str)
fn emit_invoke( &mut self, _: &str, _: &str, _: u64, _: &str, _: &str, _: &str, _: &str, _: &str, _: &str, _: &[u8], _: &str, _: u64, _: &str, _: &str, _: &BrickResult, _: Option<&[u8]>, _: f64, _: &str, )
Auto Trait Implementations§
impl Freeze for NullTrace
impl RefUnwindSafe for NullTrace
impl Send for NullTrace
impl Sync for NullTrace
impl Unpin for NullTrace
impl UnsafeUnpin for NullTrace
impl UnwindSafe for NullTrace
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more