[−][src]Struct vrp_core::solver::Telemetry  
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]
&mut self,
item_idx: usize,
total_items: usize,
item_time: Timer
)
Reports initial solution statistics.
pub fn on_progress(
    &mut self, 
    refinement_ctx: &RefinementContext, 
    generation_time: Timer
)[src]
&mut self,
refinement_ctx: &RefinementContext,
generation_time: Timer
)
Reports generation statistics.
pub fn on_population(
    &mut self, 
    refinement_ctx: &RefinementContext, 
    should_log_population: bool, 
    should_track_population: bool
)[src]
&mut self,
refinement_ctx: &RefinementContext,
should_log_population: bool,
should_track_population: bool
)
Reports population state.
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 lig 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
V: MultiLane<T>,