#[non_exhaustive]pub enum WitnessStatus {
Quorum {
verified: usize,
required: usize,
},
Insufficient {
verified: usize,
required: usize,
},
NotIndependent {
verified: usize,
required: usize,
shortfalls: Vec<String>,
},
NotProvided,
}Expand description
Outcome of verifying witness cosignatures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Quorum
Witness quorum was met.
Fields
Insufficient
Witness quorum was not met.
Fields
NotIndependent
The cosigning quorum met the count but is NOT independent — too few distinct organizations / jurisdictions / infrastructure zones among the witnesses that actually cosigned. A count-met-but-correlated quorum is not a non-equivocation guarantee, so this fails verification.
Fields
NotProvided
No witness data was available for verification.
Trait Implementations§
Source§impl Clone for WitnessStatus
impl Clone for WitnessStatus
Source§fn clone(&self) -> WitnessStatus
fn clone(&self) -> WitnessStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WitnessStatus
impl Debug for WitnessStatus
Source§impl<'de> Deserialize<'de> for WitnessStatus
impl<'de> Deserialize<'de> for WitnessStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WitnessStatus
Source§impl PartialEq for WitnessStatus
impl PartialEq for WitnessStatus
Source§fn eq(&self, other: &WitnessStatus) -> bool
fn eq(&self, other: &WitnessStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WitnessStatus
impl Serialize for WitnessStatus
impl StructuralPartialEq for WitnessStatus
Auto Trait Implementations§
impl Freeze for WitnessStatus
impl RefUnwindSafe for WitnessStatus
impl Send for WitnessStatus
impl Sync for WitnessStatus
impl Unpin for WitnessStatus
impl UnsafeUnpin for WitnessStatus
impl UnwindSafe for WitnessStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.