pub struct RekeyThresholds {
pub max_frames: u64,
pub max_bytes: u64,
pub max_age: Duration,
pub max_previous_keys: usize,
}Expand description
Rekey thresholds and key-retention policy.
Fields§
§max_frames: u64Trigger rekey when outbound frame count reaches this value.
max_bytes: u64Trigger rekey when outbound plaintext bytes reaches this value.
max_age: DurationTrigger rekey when elapsed time since last rekey reaches this value.
max_previous_keys: usizeNumber of previous keys retained for inbound compatibility.
Trait Implementations§
Source§impl Clone for RekeyThresholds
impl Clone for RekeyThresholds
Source§fn clone(&self) -> RekeyThresholds
fn clone(&self) -> RekeyThresholds
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 RekeyThresholds
impl Debug for RekeyThresholds
Auto Trait Implementations§
impl Freeze for RekeyThresholds
impl RefUnwindSafe for RekeyThresholds
impl Send for RekeyThresholds
impl Sync for RekeyThresholds
impl Unpin for RekeyThresholds
impl UnsafeUnpin for RekeyThresholds
impl UnwindSafe for RekeyThresholds
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