Struct libtracecmd::Event
source · pub struct Event {
pub name: String,
/* private fields */
}
Expand description
A wrapper of tep_event
.
Fields§
§name: String
Name of the event.
Implementations§
source§impl Event
impl Event
sourcepub fn print_fields(&self, rec: &Record)
pub fn print_fields(&self, rec: &Record)
Prints each field name followed by the record’s field value according to the field’s type.
This is a wrapper of tep_record_print_fields.
sourcepub fn get_fields(&self, rec: &Record) -> String
pub fn get_fields(&self, rec: &Record) -> String
Gets each field name follwed by the record’s field value according to the field’s type.
This is a wrapper of tep_record_print_fields.
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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