pub struct ChainTraceRecord {
pub sequence: u64,
pub device_id: PlayerDeviceId,
pub action: TraceAction,
pub event: PlayEvent,
pub detail: String,
}Expand description
A single trace record describing one action in a player chain.
Fields§
§sequence: u64Monotonic sequence number ordering records within a trace.
device_id: PlayerDeviceIdThe device that produced or handled the event.
action: TraceActionThe action taken on the event.
event: PlayEventThe event the action applied to.
detail: StringHuman-readable detail about the action.
Implementations§
Source§impl ChainTraceRecord
impl ChainTraceRecord
Sourcepub fn new(
sequence: u64,
device_id: PlayerDeviceId,
action: TraceAction,
event: PlayEvent,
detail: impl Into<String>,
) -> Self
pub fn new( sequence: u64, device_id: PlayerDeviceId, action: TraceAction, event: PlayEvent, detail: impl Into<String>, ) -> Self
Builds a trace record from its fields, converting detail into a string.
Trait Implementations§
Source§impl Clone for ChainTraceRecord
impl Clone for ChainTraceRecord
Source§fn clone(&self) -> ChainTraceRecord
fn clone(&self) -> ChainTraceRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChainTraceRecord
impl Debug for ChainTraceRecord
impl Eq for ChainTraceRecord
Source§impl PartialEq for ChainTraceRecord
impl PartialEq for ChainTraceRecord
impl StructuralPartialEq for ChainTraceRecord
Auto Trait Implementations§
impl Freeze for ChainTraceRecord
impl RefUnwindSafe for ChainTraceRecord
impl Send for ChainTraceRecord
impl Sync for ChainTraceRecord
impl Unpin for ChainTraceRecord
impl UnsafeUnpin for ChainTraceRecord
impl UnwindSafe for ChainTraceRecord
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