pub struct LiveState {
pub pending: HashMap<(Address, u32), PendingTarget>,
pub set_stacks: HashMap<Vec<u32>, VecDeque<Task>>,
pub trace_targets: HashMap<Address, Instant>,
}Expand description
State for a live (feed-based) measurement.
Fields§
§pending: HashMap<(Address, u32), PendingTarget>Pending discovery probes awaiting a response tracked by address and session ID.
set_stacks: HashMap<Vec<u32>, VecDeque<Task>>Follow-up task stacks for explicit worker sets (sent staggered like a broadcast).
trace_targets: HashMap<Address, Instant>Recently dispatched trace targets and their reply deadline (feed-trace only).
Implementations§
Source§impl LiveState
impl LiveState
Sourcepub fn remove_pending(
&mut self,
addr: Address,
session_id: u32,
) -> Option<(u32, PendingTarget)>
pub fn remove_pending( &mut self, addr: Address, session_id: u32, ) -> Option<(u32, PendingTarget)>
When receiving a –discovery probe reply, remove the associated pending target. Makes use of session_id when used in discovery probes (ICMP/DNS-A only).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LiveState
impl RefUnwindSafe for LiveState
impl Send for LiveState
impl Sync for LiveState
impl Unpin for LiveState
impl UnsafeUnpin for LiveState
impl UnwindSafe for LiveState
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].