pub enum CollectionError {
Duplicity(DuplicityEvidence),
ThresholdNotMet {
got: usize,
required: usize,
errors: Vec<(String, WitnessError)>,
},
AllFailed {
errors: Vec<(String, WitnessError)>,
},
NoWitnesses,
}Expand description
Error during receipt collection.
Variants§
Duplicity(DuplicityEvidence)
Duplicity detected during collection.
ThresholdNotMet
Threshold not met - insufficient receipts collected.
Fields
§
errors: Vec<(String, WitnessError)>Errors from failed witness requests
AllFailed
All witnesses failed.
Fields
§
errors: Vec<(String, WitnessError)>Errors from each witness
NoWitnesses
No witnesses configured.
Trait Implementations§
Source§impl Debug for CollectionError
impl Debug for CollectionError
Source§impl Display for CollectionError
impl Display for CollectionError
Source§impl Error for CollectionError
impl Error for CollectionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CollectionError
impl RefUnwindSafe for CollectionError
impl Send for CollectionError
impl Sync for CollectionError
impl Unpin for CollectionError
impl UnsafeUnpin for CollectionError
impl UnwindSafe for CollectionError
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