Enum ibc::core::ics02_client::client_consensus::AnyConsensusState
source · [−]pub enum AnyConsensusState {
Tendermint(ConsensusState),
Mock(MockConsensusState),
}
Variants
Tendermint(ConsensusState)
Mock(MockConsensusState)
Implementations
sourceimpl AnyConsensusState
impl AnyConsensusState
pub fn timestamp(&self) -> Timestamp
pub fn client_type(&self) -> ClientType
Trait Implementations
sourceimpl Clone for AnyConsensusState
impl Clone for AnyConsensusState
sourcefn clone(&self) -> AnyConsensusState
fn clone(&self) -> AnyConsensusState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConsensusState for AnyConsensusState
impl ConsensusState for AnyConsensusState
type Error = Infallible
sourcefn client_type(&self) -> ClientType
fn client_type(&self) -> ClientType
Type of client associated with this consensus state (eg. Tendermint)
sourcefn root(&self) -> &CommitmentRoot
fn root(&self) -> &CommitmentRoot
Commitment root of the consensus state, which is used for key-value pair verification.
sourcefn wrap_any(self) -> AnyConsensusState
fn wrap_any(self) -> AnyConsensusState
Wrap into an AnyConsensusState
sourceimpl Debug for AnyConsensusState
impl Debug for AnyConsensusState
sourceimpl From<AnyConsensusState> for Any
impl From<AnyConsensusState> for Any
sourcefn from(value: AnyConsensusState) -> Self
fn from(value: AnyConsensusState) -> Self
Converts to this type from the input type.
sourceimpl From<HostBlock> for AnyConsensusState
impl From<HostBlock> for AnyConsensusState
sourceimpl From<MockConsensusState> for AnyConsensusState
impl From<MockConsensusState> for AnyConsensusState
sourcefn from(mcs: MockConsensusState) -> Self
fn from(mcs: MockConsensusState) -> Self
Converts to this type from the input type.
sourceimpl From<MockHeader> for AnyConsensusState
impl From<MockHeader> for AnyConsensusState
sourcefn from(h: MockHeader) -> Self
fn from(h: MockHeader) -> Self
Converts to this type from the input type.
sourceimpl From<TmLightBlock> for AnyConsensusState
impl From<TmLightBlock> for AnyConsensusState
sourcefn from(light_block: TmLightBlock) -> Self
fn from(light_block: TmLightBlock) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<AnyConsensusState> for AnyConsensusState
impl PartialEq<AnyConsensusState> for AnyConsensusState
sourcefn 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 ==
. Read more
sourceimpl Protobuf<Any> for AnyConsensusState
impl Protobuf<Any> for AnyConsensusState
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
sourcefn encode_vec(&self) -> Result<Vec<u8, Global>, Error>
fn encode_vec(&self) -> Result<Vec<u8, Global>, Error>
Encodes into a Protobuf-encoded Vec<u8>
.
sourcefn 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). Read more
sourceimpl Serialize for AnyConsensusState
impl Serialize for AnyConsensusState
sourceimpl TryFrom<Any> for AnyConsensusState
impl TryFrom<Any> for AnyConsensusState
impl Eq for AnyConsensusState
impl StructuralEq for AnyConsensusState
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more