pub struct Event { /* private fields */ }Expand description
A single event in a case trace.
Implementations§
Source§impl Event
impl Event
pub fn new(activity: &str) -> Self
pub fn at_ns(self, ns: u64) -> Self
pub fn by(self, resource: &str) -> Self
pub fn with_lifecycle(self, lc: &str) -> Self
pub fn activity(&self) -> &str
pub fn resource(&self) -> Option<&str>
pub fn lifecycle(&self) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin 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