pub struct Event {
pub id: EventId,
pub at: PTime,
pub backtrace: BacktraceId,
pub target: EventTarget,
pub kind: EventKind,
}Fields§
§id: EventIdOpaque event identifier.
at: PTimeEvent timestamp.
backtrace: BacktraceIdEvent source.
target: EventTargetEvent target (entity or scope).
kind: EventKindEvent kind.
Implementations§
Source§impl Event
impl Event
Sourcepub fn new(target: EventTarget, kind: EventKind, backtrace: BacktraceId) -> Self
pub fn new(target: EventTarget, kind: EventKind, backtrace: BacktraceId) -> Self
Builds an event with explicit source context.
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