Struct ibc_testkit::testapp::ibc::clients::mock::consensus_state::MockConsensusState
source · pub struct MockConsensusState {
pub header: MockHeader,
pub root: CommitmentRoot,
}Fields§
§header: MockHeader§root: CommitmentRootImplementations§
Trait Implementations§
source§impl Clone for MockConsensusState
impl Clone for MockConsensusState
source§fn clone(&self) -> MockConsensusState
fn clone(&self) -> MockConsensusState
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 MockConsensusState
impl ConsensusState for MockConsensusState
source§impl Debug for MockConsensusState
impl Debug for MockConsensusState
source§impl<'de> Deserialize<'de> for MockConsensusState
impl<'de> Deserialize<'de> for MockConsensusState
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 From<MockConsensusState> for Any
impl From<MockConsensusState> for Any
source§fn from(consensus_state: MockConsensusState) -> Self
fn from(consensus_state: MockConsensusState) -> Self
Converts to this type from the input type.
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<MockConsensusState> for ConsensusState
impl From<MockConsensusState> for ConsensusState
source§fn from(value: MockConsensusState) -> Self
fn from(value: MockConsensusState) -> Self
Converts to this type from the input type.
source§impl From<MockConsensusState> for MockClientState
impl From<MockConsensusState> for MockClientState
source§fn from(cs: MockConsensusState) -> Self
fn from(cs: MockConsensusState) -> Self
Converts to this type from the input type.
source§impl PartialEq for MockConsensusState
impl PartialEq for MockConsensusState
source§fn eq(&self, other: &MockConsensusState) -> bool
fn eq(&self, other: &MockConsensusState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Protobuf<Any> for MockConsensusState
impl Protobuf<Any> for MockConsensusState
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 Protobuf<ConsensusState> for MockConsensusState
impl Protobuf<ConsensusState> for MockConsensusState
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 Serialize for MockConsensusState
impl Serialize for MockConsensusState
source§impl TryFrom<Any> for MockConsensusState
impl TryFrom<Any> for MockConsensusState
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.
source§impl TryFrom<ConsensusState> for MockConsensusState
impl TryFrom<ConsensusState> for MockConsensusState
§type Error = ClientError
type Error = ClientError
The type returned in the event of a conversion error.
impl Eq for MockConsensusState
impl StructuralPartialEq for MockConsensusState
Auto Trait Implementations§
impl Freeze for MockConsensusState
impl RefUnwindSafe for MockConsensusState
impl Send for MockConsensusState
impl Sync for MockConsensusState
impl Unpin for MockConsensusState
impl UnwindSafe for MockConsensusState
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