[][src]Struct vrp_core::solver::Telemetry

pub struct Telemetry { /* fields omitted */ }

Provides way to collect metrics and write information into log.

Implementations

impl Telemetry[src]

pub fn new(mode: TelemetryMode) -> Self[src]

Creates a new instance of Telemetry.

pub fn start(&mut self)[src]

Starts telemetry reporting.

pub fn on_initial(
    &mut self,
    item_idx: usize,
    total_items: usize,
    item_time: Timer
)
[src]

Reports initial solution statistics.

pub fn on_generation(
    &mut self,
    refinement_ctx: &mut RefinementContext,
    generation_time: Timer,
    is_improved: bool
)
[src]

Reports generation statistics.

pub fn on_result(&mut self, refinement_ctx: &RefinementContext)[src]

Reports final statistic.

pub fn get_metrics(self) -> Option<Metrics>[src]

Gets metrics.

pub fn log(&self, message: &str)[src]

Writes log message.

Auto Trait Implementations

impl !RefUnwindSafe for Telemetry

impl !Send for Telemetry

impl !Sync for Telemetry

impl Unpin for Telemetry

impl !UnwindSafe for Telemetry

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,