[][src]Enum tendermint_light_client::types::Status

pub enum Status {
    Failed,
    Unverified,
    Verified,
    Trusted,
}

Verification status of a light block.

Variants

Failed

The light block has failed verification.

Unverified

The light has not been verified yet.

Verified

The light block has been successfully verified.

Trusted

The light block has been successfully verified and has passed fork detection.

Implementations

impl Status[src]

pub fn iter() -> &'static [Self][src]

Return a slice of all the possible values for this enum.

pub fn most_trusted(a: Self, b: Self) -> Self[src]

Returns the most trusted status between the two given one.

From least to most trusted: Failed, Unverified, Verified, Trusted.

Trait Implementations

impl Clone for Status[src]

impl Copy for Status[src]

impl Debug for Status[src]

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

impl Eq for Status[src]

impl Ord for Status[src]

impl PartialEq<Status> for Status[src]

impl PartialOrd<Status> for Status[src]

impl Serialize for Status[src]

impl StructuralEq for Status[src]

impl StructuralPartialEq for Status[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> Pointable for T

type Init = T

The type for initializers.

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