Enum single_use_seals::SealStatus
source · #[repr(u8)]pub enum SealStatus {
Undefined = 0,
Closed = 1,
}
Expand description
Single-use-seal status returned by SealProtocol::get_seal_status
and
SealProtocolAsync::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§
Trait Implementations§
source§impl Clone for SealStatus
impl Clone for SealStatus
source§fn clone(&self) -> SealStatus
fn clone(&self) -> SealStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SealStatus
impl Debug for SealStatus
source§impl Display for SealStatus
impl Display for SealStatus
impl Copy for SealStatus
Auto Trait Implementations§
impl RefUnwindSafe for SealStatus
impl Send for SealStatus
impl Sync for SealStatus
impl Unpin for SealStatus
impl UnwindSafe for SealStatus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more