Struct ibc::ics07_tendermint::client_state::ClientState[][src]

pub struct ClientState {
    pub chain_id: ChainId,
    pub trust_level: TrustThreshold,
    pub trusting_period: Duration,
    pub unbonding_period: Duration,
    pub max_clock_drift: Duration,
    pub frozen_height: Height,
    pub latest_height: Height,
    pub upgrade_path: Vec<String>,
    pub allow_update_after_expiry: bool,
    pub allow_update_after_misbehaviour: bool,
}

Fields

chain_id: ChainIdtrust_level: TrustThresholdtrusting_period: Durationunbonding_period: Durationmax_clock_drift: Durationfrozen_height: Heightlatest_height: Heightupgrade_path: Vec<String>allow_update_after_expiry: boolallow_update_after_misbehaviour: bool

Implementations

impl ClientState[src]

pub fn new(
    chain_id: ChainId,
    trust_level: TrustThreshold,
    trusting_period: Duration,
    unbonding_period: Duration,
    max_clock_drift: Duration,
    latest_height: Height,
    frozen_height: Height,
    upgrade_path: Vec<String>,
    allow_update_after_expiry: bool,
    allow_update_after_misbehaviour: bool
) -> Result<ClientState, Error>
[src]

pub fn latest_height(&self) -> Height[src]

pub fn with_header(self, h: Header) -> Self[src]

pub fn zero_custom_fields(client_state: Self) -> Self[src]

Helper function to verify the upgrade client procedure. Resets all fields except the blockchain-specific ones.

Trait Implementations

impl ClientState for ClientState[src]

impl Clone for ClientState[src]

impl Debug for ClientState[src]

impl Eq for ClientState[src]

impl PartialEq<ClientState> for ClientState[src]

impl Protobuf<ClientState> for ClientState[src]

impl Serialize for ClientState[src]

impl StructuralEq for ClientState[src]

impl StructuralPartialEq for ClientState[src]

impl TryFrom<ClientState> for ClientState[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]