pub struct SnapshotRunStateHistoryEntry {
pub from: Option<RunState>,
pub to: RunState,
pub timestamp: u64,
}Expand description
Snapshot representation of a run state history entry.
Fields§
§from: Option<RunState>The previous state, if any.
to: RunStateThe new state recorded by the WAL event.
timestamp: u64The timestamp associated with the transition.
Trait Implementations§
Source§impl Clone for SnapshotRunStateHistoryEntry
impl Clone for SnapshotRunStateHistoryEntry
Source§fn clone(&self) -> SnapshotRunStateHistoryEntry
fn clone(&self) -> SnapshotRunStateHistoryEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotRunStateHistoryEntry
impl Debug for SnapshotRunStateHistoryEntry
Source§impl<'de> Deserialize<'de> for SnapshotRunStateHistoryEntry
impl<'de> Deserialize<'de> for SnapshotRunStateHistoryEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RunStateHistoryEntry> for SnapshotRunStateHistoryEntry
impl From<RunStateHistoryEntry> for SnapshotRunStateHistoryEntry
Source§fn from(entry: RunStateHistoryEntry) -> Self
fn from(entry: RunStateHistoryEntry) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SnapshotRunStateHistoryEntry
impl PartialEq for SnapshotRunStateHistoryEntry
Source§fn eq(&self, other: &SnapshotRunStateHistoryEntry) -> bool
fn eq(&self, other: &SnapshotRunStateHistoryEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SnapshotRunStateHistoryEntry
impl StructuralPartialEq for SnapshotRunStateHistoryEntry
Auto Trait Implementations§
impl Freeze for SnapshotRunStateHistoryEntry
impl RefUnwindSafe for SnapshotRunStateHistoryEntry
impl Send for SnapshotRunStateHistoryEntry
impl Sync for SnapshotRunStateHistoryEntry
impl Unpin for SnapshotRunStateHistoryEntry
impl UnsafeUnpin for SnapshotRunStateHistoryEntry
impl UnwindSafe for SnapshotRunStateHistoryEntry
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