pub struct ConsensusState(/* private fields */);
Expand description
Newtype wrapper around the ConsensusState
type imported from the
ibc-client-tendermint-types
crate. This wrapper exists so that we can
bypass Rust’s orphan rules and implement traits from
ibc::core::client::context
on the ConsensusState
type.
Implementations§
Source§impl ConsensusState
impl ConsensusState
pub fn inner(&self) -> &ConsensusStateType
pub fn into_inner(self) -> ConsensusStateType
pub fn timestamp(&self) -> Time
pub fn next_validators_hash(&self) -> Hash
Trait Implementations§
Source§impl Clone for ConsensusState
impl Clone for ConsensusState
Source§fn clone(&self) -> ConsensusState
fn clone(&self) -> ConsensusState
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 ConsensusState
impl ConsensusState for ConsensusState
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 ConsensusState
impl Debug for ConsensusState
Source§impl<'de> Deserialize<'de> for ConsensusState
impl<'de> Deserialize<'de> for ConsensusState
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<ConsensusState> for Any
impl From<ConsensusState> for Any
Source§fn from(client_state: ConsensusState) -> Self
fn from(client_state: ConsensusState) -> Self
Converts to this type from the input type.
Source§impl From<ConsensusState> for ConsensusState
impl From<ConsensusState> for ConsensusState
Source§fn from(value: ConsensusStateType) -> Self
fn from(value: ConsensusStateType) -> Self
Converts to this type from the input type.
Source§impl From<ConsensusState> for ConsensusState
impl From<ConsensusState> for ConsensusState
Source§fn from(value: ConsensusState) -> Self
fn from(value: ConsensusState) -> Self
Converts to this type from the input type.
Source§impl From<ConsensusState> for ConsensusState
impl From<ConsensusState> for ConsensusState
Source§fn from(consensus_state: ConsensusState) -> Self
fn from(consensus_state: ConsensusState) -> Self
Converts to this type from the input type.
Source§impl From<Header> for ConsensusState
impl From<Header> for ConsensusState
Source§impl PartialEq for ConsensusState
impl PartialEq for ConsensusState
Source§impl Protobuf<Any> for ConsensusState
impl Protobuf<Any> for ConsensusState
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 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§impl Protobuf<ConsensusState> for ConsensusState
impl Protobuf<ConsensusState> for ConsensusState
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 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§impl Serialize for ConsensusState
impl Serialize for ConsensusState
Source§impl TryFrom<Any> for ConsensusState
impl TryFrom<Any> for ConsensusState
Source§impl TryFrom<ConsensusState> for ConsensusState
impl TryFrom<ConsensusState> for ConsensusState
Source§type Error = DecodingError
type Error = DecodingError
The type returned in the event of a conversion error.
impl Eq for ConsensusState
impl StructuralPartialEq for ConsensusState
Auto Trait Implementations§
impl Freeze for ConsensusState
impl RefUnwindSafe for ConsensusState
impl Send for ConsensusState
impl Sync for ConsensusState
impl Unpin for ConsensusState
impl UnwindSafe for ConsensusState
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