pub enum FederationError {
Show 15 variants
PrivacyBudgetExhausted {
spent: f64,
limit: f64,
},
InvalidEpsilon(f64),
InvalidDelta(f64),
SegmentValidation(String),
VersionMismatch {
expected: u32,
got: u32,
},
SignatureVerification,
WitnessChainBroken(usize),
InsufficientObservations {
needed: u64,
have: u64,
},
QualityBelowThreshold {
score: f64,
threshold: f64,
},
RateLimited {
next_allowed_epoch_s: u64,
},
PiiLeakDetected {
field: String,
},
ByzantineOutlier {
contributor: String,
},
InsufficientContributions {
min: usize,
got: usize,
},
Serialization(String),
Io(String),
}Expand description
Errors that can occur during federation operations.
Variants§
PrivacyBudgetExhausted
InvalidEpsilon(f64)
InvalidDelta(f64)
SegmentValidation(String)
VersionMismatch
SignatureVerification
WitnessChainBroken(usize)
InsufficientObservations
QualityBelowThreshold
RateLimited
PiiLeakDetected
ByzantineOutlier
InsufficientContributions
Serialization(String)
Io(String)
Trait Implementations§
Source§impl Debug for FederationError
impl Debug for FederationError
Source§impl Display for FederationError
impl Display for FederationError
Source§impl Error for FederationError
impl Error for FederationError
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 FederationError
impl RefUnwindSafe for FederationError
impl Send for FederationError
impl Sync for FederationError
impl Unpin for FederationError
impl UnsafeUnpin for FederationError
impl UnwindSafe for FederationError
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