pub struct NopProfiler;Expand description
No-op profiler used when no profiler is set.
All operations are no-ops. enabled() returns false, causing
ProfileScope to skip all work. This provides zero overhead when
profiling is disabled.
Trait Implementations§
Source§impl Clone for NopProfiler
impl Clone for NopProfiler
Source§fn clone(&self) -> NopProfiler
fn clone(&self) -> NopProfiler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NopProfiler
impl Debug for NopProfiler
Source§impl Default for NopProfiler
impl Default for NopProfiler
Source§fn default() -> NopProfiler
fn default() -> NopProfiler
Returns the “default value” for a type. Read more
Source§impl Profiler for NopProfiler
impl Profiler for NopProfiler
impl Copy for NopProfiler
Auto Trait Implementations§
impl Freeze for NopProfiler
impl RefUnwindSafe for NopProfiler
impl Send for NopProfiler
impl Sync for NopProfiler
impl Unpin for NopProfiler
impl UnsafeUnpin for NopProfiler
impl UnwindSafe for NopProfiler
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