pub enum AnyConsensusState {
Tendermint(ConsensusState),
Mock(MockConsensusState),
}Variants§
Tendermint(ConsensusState)
Mock(MockConsensusState)
Trait Implementations§
Source§impl Clone for AnyConsensusState
impl Clone for AnyConsensusState
Source§fn clone(&self) -> AnyConsensusState
fn clone(&self) -> AnyConsensusState
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 ConsensusState for AnyConsensusState
impl ConsensusState for AnyConsensusState
Source§fn root(&self) -> &CommitmentRoot
fn root(&self) -> &CommitmentRoot
Commitment root of the consensus state, which is used for key-value pair verification.
Source§impl Debug for AnyConsensusState
impl Debug for AnyConsensusState
Source§impl From<AnyConsensusState> for Any
impl From<AnyConsensusState> for Any
Source§fn from(host_consensus_state: AnyConsensusState) -> Self
fn from(host_consensus_state: AnyConsensusState) -> Self
Converts to this type from the input type.
Source§impl From<ConsensusState> for AnyConsensusState
impl From<ConsensusState> for AnyConsensusState
Source§fn from(consensus_state: ConsensusStateType) -> Self
fn from(consensus_state: ConsensusStateType) -> Self
Converts to this type from the input type.
Source§impl From<ConsensusState> for AnyConsensusState
impl From<ConsensusState> for AnyConsensusState
Source§fn from(value: TmConsensusState) -> Self
fn from(value: TmConsensusState) -> Self
Converts to this type from the input type.
Source§impl From<MockConsensusState> for AnyConsensusState
impl From<MockConsensusState> for AnyConsensusState
Source§fn from(value: MockConsensusState) -> Self
fn from(value: MockConsensusState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AnyConsensusState
impl PartialEq for AnyConsensusState
Source§impl TryFrom<Any> for AnyConsensusState
impl TryFrom<Any> for AnyConsensusState
Source§impl TryFrom<AnyConsensusState> for ConsensusState
impl TryFrom<AnyConsensusState> for ConsensusState
Source§type Error = DecodingError
type Error = DecodingError
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyConsensusState> for MockConsensusState
impl TryFrom<AnyConsensusState> for MockConsensusState
Source§type Error = DecodingError
type Error = DecodingError
The type returned in the event of a conversion error.
impl Eq for AnyConsensusState
impl StructuralPartialEq for AnyConsensusState
Auto Trait Implementations§
impl Freeze for AnyConsensusState
impl RefUnwindSafe for AnyConsensusState
impl Send for AnyConsensusState
impl Sync for AnyConsensusState
impl Unpin for AnyConsensusState
impl UnwindSafe for AnyConsensusState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.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.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