pub struct KeyUsageStats {
pub total_operations: u64,
pub encryption_count: u64,
pub decryption_count: u64,
pub derivation_count: u64,
pub first_used: Option<SystemTime>,
pub last_used: Option<SystemTime>,
pub bytes_processed: u64,
pub error_count: u64,
}Expand description
Key usage statistics
Fieldsยง
ยงtotal_operations: u64Total operations
encryption_count: u64Encryption operations
decryption_count: u64Decryption operations
derivation_count: u64Key derivation operations
first_used: Option<SystemTime>First use timestamp
last_used: Option<SystemTime>Last use timestamp
bytes_processed: u64Bytes processed
error_count: u64Error count
Trait Implementationsยง
Sourceยงimpl Clone for KeyUsageStats
impl Clone for KeyUsageStats
Sourceยงfn clone(&self) -> KeyUsageStats
fn clone(&self) -> KeyUsageStats
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 KeyUsageStats
impl Debug for KeyUsageStats
Sourceยงimpl Default for KeyUsageStats
impl Default for KeyUsageStats
Sourceยงfn default() -> KeyUsageStats
fn default() -> KeyUsageStats
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for KeyUsageStats
impl<'de> Deserialize<'de> for KeyUsageStats
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl Freeze for KeyUsageStats
impl RefUnwindSafe for KeyUsageStats
impl Send for KeyUsageStats
impl Sync for KeyUsageStats
impl Unpin for KeyUsageStats
impl UnwindSafe for KeyUsageStats
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