[][src]Enum lnpbp::single_use_seals::SealStatus

#[repr(u8)]pub enum SealStatus {
    Undefined,
    Closed,
}

Single-use-seal status returned by SealMedium::get_seal_status and [AsyncSealMedium::get_seal_status] functions.

NB: It's important to note, that while its possible to deterministically define was a given seal closed it yet may be not possible to find out if the seal is open without provision of the message and witness; i.e. seal status may be either "closed over message" or "unknown". Some specific implementations of single-use-seals may define procedure to deterministically prove that a given seal is not closed (i.e. opened), however this is not a part of the specification and we should not rely on the existence of such possibility in all cases.

Variants

Undefined

It is unknown/undetermined whether the seal was closed

Closed

The seal is closed

Trait Implementations

impl Clone for SealStatus[src]

impl Copy for SealStatus[src]

impl Debug for SealStatus[src]

impl Display for SealStatus[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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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>,