pub struct StatusPhaseLog {
pub timestamp: i64,
pub status: StatusPhase,
}Expand description
A log entry recording a status phase transition with timestamp
Fields§
§timestamp: i64Unix timestamp in milliseconds
status: StatusPhaseThe status phase
Implementations§
Source§impl StatusPhaseLog
impl StatusPhaseLog
Sourcepub fn new(status: StatusPhase) -> Self
pub fn new(status: StatusPhase) -> Self
Creates a new status phase log entry with the current timestamp
Trait Implementations§
Source§impl Clone for StatusPhaseLog
impl Clone for StatusPhaseLog
Source§fn clone(&self) -> StatusPhaseLog
fn clone(&self) -> StatusPhaseLog
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 StatusPhaseLog
impl Debug for StatusPhaseLog
Source§impl PartialEq for StatusPhaseLog
impl PartialEq for StatusPhaseLog
Source§fn eq(&self, other: &StatusPhaseLog) -> bool
fn eq(&self, other: &StatusPhaseLog) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatusPhaseLog
Auto Trait Implementations§
impl Freeze for StatusPhaseLog
impl RefUnwindSafe for StatusPhaseLog
impl Send for StatusPhaseLog
impl Sync for StatusPhaseLog
impl Unpin for StatusPhaseLog
impl UnsafeUnpin for StatusPhaseLog
impl UnwindSafe for StatusPhaseLog
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