pub struct MrpParameters {
pub session_idle_interval: Duration,
pub session_active_interval: Duration,
pub session_active_threshold: Duration,
}Expand description
Peer MRP intervals, typically taken from its mDNS TXT records.
Fields§
§session_idle_interval: DurationSII - retransmission interval when the peer is idle (sleepy).
session_active_interval: DurationSAI - retransmission interval when the peer is active.
session_active_threshold: DurationSAT - how long after the last received message the peer counts as active.
Implementations§
Source§impl MrpParameters
impl MrpParameters
Sourcepub fn from_txt_ms(sii: Option<u32>, sai: Option<u32>, sat: Option<u32>) -> Self
pub fn from_txt_ms(sii: Option<u32>, sai: Option<u32>, sat: Option<u32>) -> Self
Build from optional TXT-record millisecond values (keys SII/SAI/SAT).
Missing values fall back to spec defaults; SII/SAI are clamped to
MRP_MAX_INTERVAL_MS.
Trait Implementations§
Source§impl Clone for MrpParameters
impl Clone for MrpParameters
Source§fn clone(&self) -> MrpParameters
fn clone(&self) -> MrpParameters
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 MrpParameters
impl Debug for MrpParameters
Source§impl Default for MrpParameters
impl Default for MrpParameters
Source§impl PartialEq for MrpParameters
impl PartialEq for MrpParameters
impl Copy for MrpParameters
impl Eq for MrpParameters
impl StructuralPartialEq for MrpParameters
Auto Trait Implementations§
impl Freeze for MrpParameters
impl RefUnwindSafe for MrpParameters
impl Send for MrpParameters
impl Sync for MrpParameters
impl Unpin for MrpParameters
impl UnsafeUnpin for MrpParameters
impl UnwindSafe for MrpParameters
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