pub struct LinkCadence {
pub handshake_retransmit: Duration,
pub keepalive: Duration,
pub km_resend: Duration,
pub kmreq_min_interval: Duration,
}Available on crate feature
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).
Trait Implementations§
Source§impl Clone for LinkCadence
impl Clone for LinkCadence
impl Copy for LinkCadence
Source§impl Debug for LinkCadence
impl Debug for LinkCadence
impl Eq for LinkCadence
Source§impl PartialEq for LinkCadence
impl PartialEq for LinkCadence
impl StructuralPartialEq for LinkCadence
Auto Trait Implementations§
impl Forget for LinkCadence
impl Freeze for LinkCadence
impl Move for LinkCadence
impl RefUnwindSafe for LinkCadence
impl Send for LinkCadence
impl Sync for LinkCadence
impl Unpin for LinkCadence
impl UnsafeUnpin for LinkCadence
impl UnwindSafe for LinkCadence
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