Skip to main content

Module estimator

Module estimator 

Source
Expand description

Declarations for a TimeoutEstimator type that can change implementation.

Re-exportsยง

use crate::TimeoutStateHandle; ๐Ÿ”’
use crate::timeouts::Action; ๐Ÿ”’
use crate::timeouts::TimeoutEstimator; ๐Ÿ”’
use crate::timeouts::pareto::ParetoTimeoutEstimator; ๐Ÿ”’
use crate::timeouts::pareto::ParetoTimeoutState; ๐Ÿ”’
use crate::timeouts::readonly::ReadonlyTimeoutEstimator; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use tor_error::warn_report; ๐Ÿ”’
use tor_netdir::params::NetParameters; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::warn; ๐Ÿ”’

Structsยง

Estimator ๐Ÿ”’
A timeout estimator that can change its inner implementation and share its implementation among multiple threads.

Functionsยง

estimator_from_storage ๐Ÿ”’
Try to construct a new boxed TimeoutEstimator based on the contents of storage, and whether it is read-only.