pub struct LinkCadence {
pub handshake_retransmit: Duration,
pub keepalive: Duration,
pub km_resend: Duration,
pub kmreq_min_interval: Duration,
}link only.Expand description
The protocol cadence a link keeps, every period chosen by the caller (libsrt’s values are a 250 ms handshake retransmit, a 1 s keep-alive; the rest are this crate’s own choices).
Fields§
§handshake_retransmit: DurationHow often an unanswered handshake request is re-sent (§4.3.1.1).
keepalive: DurationKeep-Alive period, measured from the last packet of any kind sent (§3.2.3).
km_resend: DurationHow often an unconfirmed refresh KMREQ is re-sent until its KMRSP arrives (§6.1.6).
kmreq_min_interval: DurationShortest interval between two peer Key Material messages this link processes: recovering the SEK runs a 2048-iteration PBKDF2, so a peer that re-sends KMREQ back to back must not spend a core on it (#2840).
Implementations§
Source§impl LinkCadence
impl LinkCadence
Sourcepub fn for_profile(_profile: Profile) -> Self
pub fn for_profile(_profile: Profile) -> Self
The Profile preset, replaceable through its with_* setters. The
cadence is a protocol rhythm, the same on every profile.
Sourcepub fn with_handshake_retransmit(self, handshake_retransmit: Duration) -> Self
pub fn with_handshake_retransmit(self, handshake_retransmit: Duration) -> Self
Replace Self::handshake_retransmit.
Sourcepub fn with_keepalive(self, keepalive: Duration) -> Self
pub fn with_keepalive(self, keepalive: Duration) -> Self
Replace Self::keepalive.
Sourcepub fn with_km_resend(self, km_resend: Duration) -> Self
pub fn with_km_resend(self, km_resend: Duration) -> Self
Replace Self::km_resend.
Sourcepub fn with_kmreq_min_interval(self, kmreq_min_interval: Duration) -> Self
pub fn with_kmreq_min_interval(self, kmreq_min_interval: Duration) -> Self
Replace Self::kmreq_min_interval.