pub struct InboundConfig {
pub m_id: u32,
pub worker_id: u16,
pub is_ipv6: bool,
pub m_type: u8,
pub origin_map: Vec<Origin>,
pub abort_s: Arc<AtomicBool>,
}
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: u32
The unique ID of the measurement.
worker_id: u16
The unique ID of this specific worker.
is_ipv6: bool
Specifies whether to listen for IPv6 packets (true
) or IPv4 packets (false
).
m_type: u8
The type of measurement being performed (e.g., ICMP, DNS, TCP).
origin_map: Vec<Origin>
A map of valid source addresses and port values (Origin
) to verify incoming packets against.
abort_s: Arc<AtomicBool>
A shared signal that can be used to gracefully shut down the worker.
Auto Trait Implementations§
impl Freeze for InboundConfig
impl RefUnwindSafe for InboundConfig
impl Send for InboundConfig
impl Sync for InboundConfig
impl Unpin for InboundConfig
impl UnwindSafe for InboundConfig
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
§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
].