pub struct InboundConfig {
pub m_id: u32,
pub worker_id: u16,
pub p_type: ProtocolType,
pub abort_s: Arc<AtomicBool>,
pub is_traceroute: bool,
pub origin_id: u32,
pub sport: u16,
pub src: String,
pub is_transport_trace: bool,
}Expand description
Configuration for an inbound packet listening worker.
This struct holds all the parameters needed to initialize and run a worker that listens for and processes incoming measurement packets.
Fields§
§m_id: u32The 16-bit measurement ID.
worker_id: u16The unique ID of this specific worker.
p_type: ProtocolTypeProtocol used
abort_s: Arc<AtomicBool>A shared signal that can be used to gracefully shut down the worker.
is_traceroute: boolIndicates if the measurement involves traceroute.
origin_id: u32Origin ID associated with the Socket
sport: u16Source port used
src: StringSource address used
is_transport_trace: boolIdentifies transport traceroute measurements, which require special handling
Trait Implementations§
Source§impl Clone for InboundConfig
impl Clone for InboundConfig
Source§fn clone(&self) -> InboundConfig
fn clone(&self) -> InboundConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InboundConfig
impl RefUnwindSafe for InboundConfig
impl Send for InboundConfig
impl Sync for InboundConfig
impl Unpin for InboundConfig
impl UnsafeUnpin for InboundConfig
impl UnwindSafe for InboundConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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].