#[non_exhaustive]pub struct SFrameStats {
pub encrypted: u64,
pub decrypted: u64,
pub syntax_errors: u64,
pub unknown_key_ids: u64,
pub authentication_failures: u64,
pub replays: u64,
}Expand description
Counts of what a context has done, for an application that watches for the brute-force signal of RFC 9605 section 7.5 (an elevated rate of failures against a short tag).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.encrypted: u64Plaintexts encrypted.
decrypted: u64Ciphertexts decrypted and released.
syntax_errors: u64Ciphertexts refused because the header or the length is malformed.
unknown_key_ids: u64Ciphertexts refused because no decryption key is stored for their KID.
authentication_failures: u64Ciphertexts refused because the authentication tag did not validate.
replays: u64Authentic ciphertexts refused as replays.
Trait Implementations§
Source§impl Clone for SFrameStats
impl Clone for SFrameStats
impl Copy for SFrameStats
Source§impl Debug for SFrameStats
impl Debug for SFrameStats
Source§impl Default for SFrameStats
impl Default for SFrameStats
impl Eq for SFrameStats
Source§impl PartialEq for SFrameStats
impl PartialEq for SFrameStats
impl StructuralPartialEq for SFrameStats
Auto Trait Implementations§
impl Forget for SFrameStats
impl Freeze for SFrameStats
impl Move for SFrameStats
impl RefUnwindSafe for SFrameStats
impl Send for SFrameStats
impl Sync for SFrameStats
impl Unpin for SFrameStats
impl UnsafeUnpin for SFrameStats
impl UnwindSafe for SFrameStats
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