pub enum OptimisticSlotMetaVersioned {
V0(OptimisticSlotMetaV0),
}
Variants§
Implementations§
source§impl OptimisticSlotMetaVersioned
impl OptimisticSlotMetaVersioned
pub fn new(hash: Hash, timestamp: UnixTimestamp) -> Self
pub fn hash(&self) -> Hash
pub fn timestamp(&self) -> UnixTimestamp
Trait Implementations§
source§impl Debug for OptimisticSlotMetaVersioned
impl Debug for OptimisticSlotMetaVersioned
source§impl<'de> Deserialize<'de> for OptimisticSlotMetaVersioned
impl<'de> Deserialize<'de> for OptimisticSlotMetaVersioned
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 PartialEq<OptimisticSlotMetaVersioned> for OptimisticSlotMetaVersioned
impl PartialEq<OptimisticSlotMetaVersioned> for OptimisticSlotMetaVersioned
source§fn eq(&self, other: &OptimisticSlotMetaVersioned) -> bool
fn eq(&self, other: &OptimisticSlotMetaVersioned) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OptimisticSlotMetaVersioned
impl StructuralEq for OptimisticSlotMetaVersioned
impl StructuralPartialEq for OptimisticSlotMetaVersioned
Auto Trait Implementations§
impl RefUnwindSafe for OptimisticSlotMetaVersioned
impl Send for OptimisticSlotMetaVersioned
impl Sync for OptimisticSlotMetaVersioned
impl Unpin for OptimisticSlotMetaVersioned
impl UnwindSafe for OptimisticSlotMetaVersioned
Blanket Implementations§
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request