Enum ibc_testkit::testapp::ibc::clients::AnyConsensusState
source · 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 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 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§fn encode_vec(self) -> Vec<u8>
fn encode_vec(self) -> Vec<u8>
Serializes the
ConsensusState. This is expected to be implemented as
first converting to the raw type (i.e. the protobuf definition), and then
serializing that.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(original: TmConsensusState) -> AnyConsensusState
fn from(original: TmConsensusState) -> AnyConsensusState
Converts to this type from the input type.
source§impl From<HostBlock> for AnyConsensusState
impl From<HostBlock> for AnyConsensusState
source§impl From<MockConsensusState> for AnyConsensusState
impl From<MockConsensusState> for AnyConsensusState
source§fn from(original: MockConsensusState) -> AnyConsensusState
fn from(original: MockConsensusState) -> AnyConsensusState
Converts to this type from the input type.
source§impl From<SyntheticTmBlock> for AnyConsensusState
impl From<SyntheticTmBlock> for AnyConsensusState
source§fn from(light_block: SyntheticTmBlock) -> Self
fn from(light_block: SyntheticTmBlock) -> Self
Converts to this type from the input type.
source§impl PartialEq for AnyConsensusState
impl PartialEq for AnyConsensusState
source§fn eq(&self, other: &AnyConsensusState) -> bool
fn eq(&self, other: &AnyConsensusState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Protobuf<Any> for AnyConsensusState
impl Protobuf<Any> for AnyConsensusState
§fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode<B>(self, buf: &mut B) -> Result<(), Error>where B: BufMut,
Encode into a buffer in Protobuf format. Read more
§fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where B: BufMut,
Encode with a length-delimiter to a buffer in Protobuf format. Read more
§fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode<B>(buf: B) -> Result<Self, Error>where B: Buf,
Constructor that attempts to decode an instance from a buffer. Read more
§fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where B: Buf,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
§fn encoded_len(self) -> usize
fn encoded_len(self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
§fn encode_vec(self) -> Vec<u8>
fn encode_vec(self) -> Vec<u8>
Encodes into a Protobuf-encoded
Vec<u8>.§fn decode_vec(v: &[u8]) -> Result<Self, Error>
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8> (or equivalent).§fn encode_length_delimited_vec(self) -> Vec<u8>
fn encode_length_delimited_vec(self) -> Vec<u8>
Encode with a length-delimiter to a
Vec<u8> Protobuf-encoded message.§fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance with a
length-delimiter from a
Vec<u8> or equivalent.source§impl TryFrom<Any> for AnyConsensusState
impl TryFrom<Any> for AnyConsensusState
source§impl TryFrom<AnyConsensusState> for ConsensusState
impl TryFrom<AnyConsensusState> for ConsensusState
impl StructuralPartialEq for AnyConsensusState
Auto Trait Implementations§
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