pub struct KmRefreshThresholds {
pub refresh_period: u64,
pub pre_announcement_period: u64,
}Available on crate feature
crypto only.Expand description
KM Refresh packet-count thresholds (draft-sharabayko-srt-01 §6.1.6).
Fields§
§refresh_period: u64Packets an active key is used for before switchover (spec-recommended
2^25).
pre_announcement_period: u64Packets before switchover the next key is announced, and after
switchover the old key stays valid (spec-recommended 4000).
Implementations§
Source§impl KmRefreshThresholds
impl KmRefreshThresholds
Sourcepub const RECOMMENDED: KmRefreshThresholds
pub const RECOMMENDED: KmRefreshThresholds
The draft’s own recommended values (§6.1.6): 2^25 packets refresh
period, 4000 packets pre-announcement period.
Trait Implementations§
Source§impl Clone for KmRefreshThresholds
impl Clone for KmRefreshThresholds
Source§fn clone(&self) -> KmRefreshThresholds
fn clone(&self) -> KmRefreshThresholds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KmRefreshThresholds
Source§impl Debug for KmRefreshThresholds
impl Debug for KmRefreshThresholds
impl Eq for KmRefreshThresholds
Source§impl PartialEq for KmRefreshThresholds
impl PartialEq for KmRefreshThresholds
impl StructuralPartialEq for KmRefreshThresholds
Auto Trait Implementations§
impl Freeze for KmRefreshThresholds
impl RefUnwindSafe for KmRefreshThresholds
impl Send for KmRefreshThresholds
impl Sync for KmRefreshThresholds
impl Unpin for KmRefreshThresholds
impl UnsafeUnpin for KmRefreshThresholds
impl UnwindSafe for KmRefreshThresholds
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