Struct warg_protocol::registry::TimestampedCheckpoint
source · pub struct TimestampedCheckpoint {
pub checkpoint: Checkpoint,
pub timestamp: u64,
}
Fields§
§checkpoint: Checkpoint
§timestamp: u64
Implementations§
source§impl TimestampedCheckpoint
impl TimestampedCheckpoint
pub fn new(checkpoint: Checkpoint, time: SystemTime) -> Result<Self>
pub fn now(checkpoint: Checkpoint) -> Result<Self>
Trait Implementations§
source§impl Clone for TimestampedCheckpoint
impl Clone for TimestampedCheckpoint
source§fn clone(&self) -> TimestampedCheckpoint
fn clone(&self) -> TimestampedCheckpoint
Returns a copy 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 TimestampedCheckpoint
impl Debug for TimestampedCheckpoint
source§impl<'de> Deserialize<'de> for TimestampedCheckpoint
impl<'de> Deserialize<'de> for TimestampedCheckpoint
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 Hash for TimestampedCheckpoint
impl Hash for TimestampedCheckpoint
source§impl PartialEq for TimestampedCheckpoint
impl PartialEq for TimestampedCheckpoint
source§fn eq(&self, other: &TimestampedCheckpoint) -> bool
fn eq(&self, other: &TimestampedCheckpoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TimestampedCheckpoint
impl Serialize for TimestampedCheckpoint
source§impl Signable for TimestampedCheckpoint
impl Signable for TimestampedCheckpoint
source§impl VisitBytes for TimestampedCheckpoint
impl VisitBytes for TimestampedCheckpoint
source§impl VisitPrefixEncode for TimestampedCheckpoint
impl VisitPrefixEncode for TimestampedCheckpoint
fn visit_pe<BV: ?Sized + ByteVisitor>( &self, visitor: &mut PrefixEncodeVisitor<'_, BV> )
fn visit_bv<BV>(&self, visitor: &mut BV)where
BV: ByteVisitor + ?Sized,
impl Eq for TimestampedCheckpoint
impl StructuralPartialEq for TimestampedCheckpoint
Auto Trait Implementations§
impl Freeze for TimestampedCheckpoint
impl RefUnwindSafe for TimestampedCheckpoint
impl Send for TimestampedCheckpoint
impl Sync for TimestampedCheckpoint
impl Unpin for TimestampedCheckpoint
impl UnwindSafe for TimestampedCheckpoint
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.