Struct tor_dirmgr::DownloadSchedule [−][src]
pub struct DownloadSchedule { /* fields omitted */ }
Expand description
Configuration for how many times to retry a download, with what frequency.
Implementations
Create a new DownloadSchedule to control our logic for retrying a given download.
The resulting configuration will always make at least one
attempt, and at most attempts
. After a failure, it will
wait at least initial_delay
before trying again.
Return an iterator to use over all the supported attempts for this configuration.
Return the number of times that we’re supposed to retry, according to this DownloadSchedule.
Return the number of parallel attempts that we’re supposed to launch, according to this DownloadSchedule.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DownloadSchedule
impl Send for DownloadSchedule
impl Sync for DownloadSchedule
impl Unpin for DownloadSchedule
impl UnwindSafe for DownloadSchedule
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more