pub struct EventClass { /* private fields */ }
Expand description
Represents a class of events that we would like to trace
Implementations§
Source§impl EventClass
Represents a class of tracepoints.
Every tracepoint of the same class shares the same set of fields.
You can have as many tracepoints of the same class as you like, but tracepoint
names are namespaced per provider, not per-class.
impl EventClass
Represents a class of tracepoints. Every tracepoint of the same class shares the same set of fields. You can have as many tracepoints of the same class as you like, but tracepoint names are namespaced per provider, not per-class.
Sourcepub fn add_field<S: Into<String>>(
&mut self,
field_name: S,
ty: CTFType,
) -> &mut Self
pub fn add_field<S: Into<String>>( &mut self, field_name: S, ty: CTFType, ) -> &mut Self
Adds a new field to the tracepoint. See the module level documentation for examples.
Sourcepub fn instantiate<S: Into<String>>(&mut self, instance_name: S) -> &mut Self
pub fn instantiate<S: Into<String>>(&mut self, instance_name: S) -> &mut Self
Instantiate the class, creating a new tracepoint. See the module level documentation for examples.
Sourcepub fn instantiate_with_level<S: Into<String>>(
&mut self,
instance_name: S,
level: LogLevel,
) -> &mut Self
pub fn instantiate_with_level<S: Into<String>>( &mut self, instance_name: S, level: LogLevel, ) -> &mut Self
Instantiate the class, creating a new tracepoint. Also allows specification of the level
Auto Trait Implementations§
impl Freeze for EventClass
impl RefUnwindSafe for EventClass
impl Send for EventClass
impl Sync for EventClass
impl Unpin for EventClass
impl UnwindSafe for EventClass
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