Struct ibc::ics02_client::height::Height[][src]

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

Fields

revision_number: u64

Previously known as “epoch”

revision_height: u64

The height of a block

Implementations

impl Height[src]

pub fn new(revision_number: u64, revision_height: u64) -> Self[src]

pub fn zero() -> Height[src]

pub fn is_zero(&self) -> bool[src]

pub fn add(&self, delta: u64) -> Height[src]

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

pub fn sub(&self, delta: u64) -> Result<Height, Error>[src]

pub fn decrement(&self) -> Result<Height, Error>[src]

pub fn with_revision_height(self, revision_height: u64) -> Height[src]

Trait Implementations

impl Clone for Height[src]

impl Copy for Height[src]

impl Debug for Height[src]

impl Default for Height[src]

impl<'de> Deserialize<'de> for Height[src]

impl Display for Height[src]

Custom debug output to omit the packet data

impl Eq for Height[src]

impl FromStr for Height[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Height[src]

impl Ord for Height[src]

impl PartialEq<Height> for Height[src]

impl PartialOrd<Height> for Height[src]

impl Protobuf<Height> for Height[src]

impl Serialize for Height[src]

impl StructuralEq for Height[src]

impl StructuralPartialEq for Height[src]

impl TryFrom<&'_ str> for Height[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Height> for Height[src]

type Error = Error<Kind>

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToString for T where
    T: Display + ?Sized
[src]

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]