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§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(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
source§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
source§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
source§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
source§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
source§fn encoded_len(self) -> usize
fn encoded_len(self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
source§fn encode_vec(self) -> Vec<u8>
fn encode_vec(self) -> Vec<u8>
Encodes into a Protobuf-encoded
Vec<u8>.source§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).source§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.source§impl TryFrom<Any> for AnyConsensusState
impl TryFrom<Any> for AnyConsensusState
source§impl TryFrom<AnyConsensusState> for ConsensusState
impl TryFrom<AnyConsensusState> for ConsensusState
§type Error = ClientError
type Error = ClientError
The type returned in the event of a conversion error.
source§impl TryFrom<AnyConsensusState> for MockConsensusState
impl TryFrom<AnyConsensusState> for MockConsensusState
§type Error = ClientError
type Error = ClientError
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