Struct ibc_proto::ibc::core::client::v1::Height[][src]

pub struct Height {
    pub revision_number: u64,
    pub revision_height: u64,
}

Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients

Normally the RevisionHeight is incremented at each height while keeping RevisionNumber the same. However some consensus algorithms may choose to reset the height in certain conditions e.g. hard forks, state-machine breaking changes In these cases, the RevisionNumber is incremented so that height continues to be monitonically increasing even as the RevisionHeight gets reset

Fields

revision_number: u64

the revision that the client is currently on

revision_height: u64

the height within the given revision

Trait Implementations

impl Clone for Height[src]

impl Debug for Height[src]

impl Default for Height[src]

impl Message for Height[src]

impl PartialEq<Height> for Height[src]

impl StructuralPartialEq for Height[src]

Auto Trait Implementations

impl RefUnwindSafe for Height

impl Send for Height

impl Sync for Height

impl Unpin for Height

impl UnwindSafe for Height

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> 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> 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]