Skip to main content

estimator_from_storage

Function estimator_from_storage 

Source
fn estimator_from_storage(
    storage: &DynStorageHandle<ParetoTimeoutState>,
) -> (bool, Box<dyn TimeoutEstimator + Send + 'static>)
Expand description

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

Returns true on a read-only state.