Enum ibc_relayer::client_state::AnyClientState
source · pub enum AnyClientState {
Tendermint(ClientState),
}
Variants§
Tendermint(ClientState)
Implementations§
source§impl AnyClientState
impl AnyClientState
pub fn chain_id(&self) -> ChainId
pub fn latest_height(&self) -> Height
pub fn frozen_height(&self) -> Option<Height>
pub fn trust_threshold(&self) -> Option<TrustThreshold>
pub fn max_clock_drift(&self) -> Duration
pub fn client_type(&self) -> ClientType
pub fn refresh_period(&self) -> Option<Duration>
Trait Implementations§
source§impl ClientState for AnyClientState
impl ClientState for AnyClientState
type UpgradeOptions = AnyUpgradeOptions
source§fn chain_id(&self) -> ChainId
fn chain_id(&self) -> ChainId
Return the chain identifier which this client is serving (i.e., the client is verifying
consensus states from this chain).
source§fn client_type(&self) -> ClientType
fn client_type(&self) -> ClientType
Type of client associated with this state (eg. Tendermint)
source§fn latest_height(&self) -> Height
fn latest_height(&self) -> Height
Latest height the client was updated to
source§fn frozen_height(&self) -> Option<Height>
fn frozen_height(&self) -> Option<Height>
Frozen height of the client
source§fn upgrade(
&mut self,
upgrade_height: Height,
upgrade_options: AnyUpgradeOptions,
chain_id: ChainId
)
fn upgrade( &mut self, upgrade_height: Height, upgrade_options: AnyUpgradeOptions, chain_id: ChainId )
Helper function to verify the upgrade client procedure.
Resets all fields except the blockchain-specific ones,
and updates the given fields.
source§impl Clone for AnyClientState
impl Clone for AnyClientState
source§fn clone(&self) -> AnyClientState
fn clone(&self) -> AnyClientState
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 Debug for AnyClientState
impl Debug for AnyClientState
source§impl<'de> Deserialize<'de> for AnyClientState
impl<'de> Deserialize<'de> for AnyClientState
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<AnyClientState> for Any
impl From<AnyClientState> for Any
source§fn from(value: AnyClientState) -> Self
fn from(value: AnyClientState) -> Self
Converts to this type from the input type.
source§impl From<ClientState> for AnyClientState
impl From<ClientState> for AnyClientState
source§fn from(cs: TmClientState) -> Self
fn from(cs: TmClientState) -> Self
Converts to this type from the input type.
source§impl PartialEq for AnyClientState
impl PartialEq for AnyClientState
source§fn eq(&self, other: &AnyClientState) -> bool
fn eq(&self, other: &AnyClientState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Protobuf<Any> for AnyClientState
impl Protobuf<Any> for AnyClientState
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 AnyClientState
impl Serialize for AnyClientState
source§impl TryFrom<Any> for AnyClientState
impl TryFrom<Any> for AnyClientState
impl StructuralPartialEq for AnyClientState
Auto Trait Implementations§
impl RefUnwindSafe for AnyClientState
impl Send for AnyClientState
impl Sync for AnyClientState
impl Unpin for AnyClientState
impl UnwindSafe for AnyClientState
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request