pub struct DevNullTracker;Expand description
A tracker that does nothing.
This can be useful for benchmarks that want to have minimum overheads.
Trait Implementations§
Source§impl Track for DevNullTracker
impl Track for DevNullTracker
Source§fn enabled_level(&self, _id: Id) -> Level
fn enabled_level(&self, _id: Id) -> Level
Determine the most verbose tracking level enabled for an entity.
Source§fn monitoring_window_size_for(&self, _id: Id) -> Option<u64>
fn monitoring_window_size_for(&self, _id: Id) -> Option<u64>
Return the monitoring window size if it is to be enabled.
Entity looked up by its ID.
Source§fn add_entity(
&self,
_id: Id,
_entity_name: &str,
_alternative_names: AlternativeNames<'_>,
) -> Level
fn add_entity( &self, _id: Id, _entity_name: &str, _alternative_names: AlternativeNames<'_>, ) -> Level
Record an entity being created.
Source§fn begin_activity(&self, _activity: Id, _lane: Id, _name: &str)
fn begin_activity(&self, _activity: Id, _lane: Id, _name: &str)
Track the beginning of a named activity on a lane.
Source§fn end_activity(&self, _activity: Id)
fn end_activity(&self, _activity: Id)
Track the end of the current activity on a lane.
Source§fn add_to_group(&self, _activity: Id, _group_id: Id)
fn add_to_group(&self, _activity: Id, _group_id: Id)
Track when an activity becomes a member of a group.
Source§fn remove_from_group(&self, _activity: Id, _group_id: Id)
fn remove_from_group(&self, _activity: Id, _group_id: Id)
Track when an activity is no longer a member of a group.
Source§fn create_entity(&self, _created_by: Id, _id: Id, _name: &str)
fn create_entity(&self, _created_by: Id, _id: Id, _name: &str)
Track when an entity with the given ID is created.
Source§fn create_monitor(&self, _created_by: Id, _id: Id, _name: &str)
fn create_monitor(&self, _created_by: Id, _id: Id, _name: &str)
Track when a monitor with the given ID is created.
Source§fn create_lane(&self, _created_by: Id, _id: Id, _name: &str)
fn create_lane(&self, _created_by: Id, _id: Id, _name: &str)
Track when a lane with the given ID is created.
Source§fn create_group(&self, _created_by: Id, _id: Id, _name: &str)
fn create_group(&self, _created_by: Id, _id: Id, _name: &str)
Track when a group with the given ID is created.
Source§fn create_object(
&self,
_created_by: Id,
_id: Id,
_size: usize,
_units: &str,
_req_type: u8,
_details: &str,
)
fn create_object( &self, _created_by: Id, _id: Id, _size: usize, _units: &str, _req_type: u8, _details: &str, )
Track when an object with the given ID is created.
Source§fn connect(&self, _connect_from: Id, _connect_to: Id)
fn connect(&self, _connect_from: Id, _connect_to: Id)
Track when an entity is connected to another entity
Auto Trait Implementations§
impl Freeze for DevNullTracker
impl RefUnwindSafe for DevNullTracker
impl Send for DevNullTracker
impl Sync for DevNullTracker
impl Unpin for DevNullTracker
impl UnsafeUnpin for DevNullTracker
impl UnwindSafe for DevNullTracker
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