pub enum PrivacyError {
BudgetExceeded {
current: f64,
max: f64,
},
InvalidEpsilon(f64),
InvalidDelta(f64),
InvalidSensitivity(f64),
NoiseGenerationFailed(String),
InvalidClippingThreshold(f64),
}Expand description
Errors during privacy operations
Variants§
BudgetExceeded
Privacy budget exceeded
InvalidEpsilon(f64)
Invalid epsilon value
InvalidDelta(f64)
Invalid delta value
InvalidSensitivity(f64)
Invalid sensitivity
NoiseGenerationFailed(String)
Noise generation failed
InvalidClippingThreshold(f64)
Clipping threshold invalid
Trait Implementations§
Source§impl Clone for PrivacyError
impl Clone for PrivacyError
Source§fn clone(&self) -> PrivacyError
fn clone(&self) -> PrivacyError
Returns a duplicate 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 PrivacyError
impl Debug for PrivacyError
Source§impl Display for PrivacyError
impl Display for PrivacyError
Source§impl Error for PrivacyError
impl Error for PrivacyError
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()
Source§impl From<PrivacyError> for QflgError
impl From<PrivacyError> for QflgError
Source§fn from(source: PrivacyError) -> Self
fn from(source: PrivacyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivacyError
impl RefUnwindSafe for PrivacyError
impl Send for PrivacyError
impl Sync for PrivacyError
impl Unpin for PrivacyError
impl UnwindSafe for PrivacyError
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