pub struct WriteConfig<'a> {
pub print_to_cli: bool,
pub output_file: File,
pub metadata_args: MetadataArgs<'a>,
pub m_type: u32,
pub is_multi_origin: bool,
pub is_symmetric: bool,
pub worker_map: BiHashMap<u32, String>,
}
Expand description
Configuration for the results writing process.
This struct bundles all the necessary parameters for write_results
to determine where and how to output measurement results,
including formatting options and contextual metadata.
Fields§
§print_to_cli: bool
Determines whether the results should also be printed to the command-line interface.
output_file: File
The file handle to which the measurement results should be written.
metadata_args: MetadataArgs<'a>
Metadata for the measurement, to be written at the beginning of the output file.
m_type: u32
The type of measurement being performed, influencing how results are processed or formatted. (e.g., 1 for ICMP, 2 for DNS/A, 3 for TCP, 4 for DNS/CHAOS, etc.)
is_multi_origin: bool
Indicates whether the measurement involves multiple origins, which affects how results are written.
is_symmetric: bool
Indicates whether the measurement is symmetric (e.g., sender == receiver is always true), to simplify certain result interpretations.
worker_map: BiHashMap<u32, String>
A bidirectional map used to convert worker IDs (u32) to their corresponding hostnames (String).
Auto Trait Implementations§
impl<'a> Freeze for WriteConfig<'a>
impl<'a> RefUnwindSafe for WriteConfig<'a>
impl<'a> Send for WriteConfig<'a>
impl<'a> Sync for WriteConfig<'a>
impl<'a> Unpin for WriteConfig<'a>
impl<'a> UnwindSafe for WriteConfig<'a>
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
§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>
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>,
Layered
].