pub enum SecurityViolationKind {
UnencryptedInStrictMode,
DecryptionFailed,
ReplayDetected,
UnauthorizedNode,
}Expand description
Types of security violations that can be detected
Variants§
UnencryptedInStrictMode
Received unencrypted document when strict encryption mode is enabled
DecryptionFailed
Decryption failed (wrong key or corrupted data)
ReplayDetected
Replay attack detected (duplicate message counter)
Message from unknown/unauthorized node
Trait Implementations§
Source§impl Clone for SecurityViolationKind
impl Clone for SecurityViolationKind
Source§fn clone(&self) -> SecurityViolationKind
fn clone(&self) -> SecurityViolationKind
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 SecurityViolationKind
impl Debug for SecurityViolationKind
Source§impl PartialEq for SecurityViolationKind
impl PartialEq for SecurityViolationKind
impl Copy for SecurityViolationKind
impl Eq for SecurityViolationKind
impl StructuralPartialEq for SecurityViolationKind
Auto Trait Implementations§
impl Freeze for SecurityViolationKind
impl RefUnwindSafe for SecurityViolationKind
impl Send for SecurityViolationKind
impl Sync for SecurityViolationKind
impl Unpin for SecurityViolationKind
impl UnwindSafe for SecurityViolationKind
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