pub struct HelloState {
pub pending_probes: HashMap<u32, Instant>,
pub recent_diffs: VecDeque<DiffEntry>,
pub swim_probes: HashMap<u32, (Instant, Name)>,
pub relay_probes: HashMap<u32, (FaceId, Name)>,
}Expand description
Mutable state shared by all HelloProtocol<T> instances.
Contains nonce-keyed maps for outstanding hellos, SWIM probes, relay bookkeeping, and the recent neighbor-diff queue piggybacked onto outgoing hello Data packets.
Fields§
§pending_probes: HashMap<u32, Instant>Nonce → send_time for outstanding hello probes.
recent_diffs: VecDeque<DiffEntry>Recent neighbor additions/removals for SWIM gossip piggyback.
swim_probes: HashMap<u32, (Instant, Name)>SWIM direct probes: nonce → (sent_at, target_name).
relay_probes: HashMap<u32, (FaceId, Name)>Relay state: relay_nonce → (origin_face, original_interest_name).
Implementations§
Source§impl HelloState
impl HelloState
Trait Implementations§
Source§impl Default for HelloState
impl Default for HelloState
Source§fn default() -> HelloState
fn default() -> HelloState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HelloState
impl RefUnwindSafe for HelloState
impl Send for HelloState
impl Sync for HelloState
impl Unpin for HelloState
impl UnwindSafe for HelloState
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