pub struct EncryptedWatchdog { /* private fields */ }Expand description
Encrypted Watchdog - Safety checks on encrypted data
Implementations§
Source§impl EncryptedWatchdog
impl EncryptedWatchdog
Sourcepub fn add_rule(&mut self, name: &str, threshold: i64) -> Result<(), FheError>
pub fn add_rule(&mut self, name: &str, threshold: i64) -> Result<(), FheError>
Add an encrypted rule
Sourcepub fn check_encrypted(
&mut self,
input: &Ciphertext,
) -> Result<EncryptedCheckResult, FheError>
pub fn check_encrypted( &mut self, input: &Ciphertext, ) -> Result<EncryptedCheckResult, FheError>
Check encrypted input against encrypted rules
Sourcepub fn decrypt_result(
&mut self,
result: &EncryptedCheckResult,
) -> Result<DecryptedCheckResult, FheError>
pub fn decrypt_result( &mut self, result: &EncryptedCheckResult, ) -> Result<DecryptedCheckResult, FheError>
Decrypt check result (requires key holder)
Sourcepub fn get_stats(&self) -> &EncryptedWatchdogStats
pub fn get_stats(&self) -> &EncryptedWatchdogStats
Get statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncryptedWatchdog
impl RefUnwindSafe for EncryptedWatchdog
impl Send for EncryptedWatchdog
impl Sync for EncryptedWatchdog
impl Unpin for EncryptedWatchdog
impl UnwindSafe for EncryptedWatchdog
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