pub struct DownloadScheduleBuilder { /* private fields */ }Expand description
Builder for DownloadSchedule.
Implementations§
Source§impl DownloadScheduleBuilder
impl DownloadScheduleBuilder
Sourcepub fn attempts(&mut self, value: u32) -> &mut Self
pub fn attempts(&mut self, value: u32) -> &mut Self
How many attempts to make before giving up?
Sourcepub fn initial_delay(&mut self, value: Duration) -> &mut Self
pub fn initial_delay(&mut self, value: Duration) -> &mut Self
The amount of time to delay after the first failure, and a lower-bound for future delays.
Sourcepub fn parallelism(&mut self, value: u8) -> &mut Self
pub fn parallelism(&mut self, value: u8) -> &mut Self
When we want to download a bunch of these at a time, how many attempts should we try to launch at once?
Sourcepub fn build(&self) -> Result<DownloadSchedule, ConfigBuildError>
pub fn build(&self) -> Result<DownloadSchedule, ConfigBuildError>
Source§impl DownloadScheduleBuilder
impl DownloadScheduleBuilder
Sourcepub fn build_retry_bootstrap(
&self,
) -> Result<DownloadSchedule, ConfigBuildError>
pub fn build_retry_bootstrap( &self, ) -> Result<DownloadSchedule, ConfigBuildError>
Default value for retry_bootstrap in DownloadScheduleConfig.
Sourcepub fn build_retry_microdescs(
&self,
) -> Result<DownloadSchedule, ConfigBuildError>
pub fn build_retry_microdescs( &self, ) -> Result<DownloadSchedule, ConfigBuildError>
Default value for microdesc_bootstrap in DownloadScheduleConfig.
Trait Implementations§
Source§impl Builder for DownloadScheduleBuilder
impl Builder for DownloadScheduleBuilder
Source§type Built = DownloadSchedule
type Built = DownloadSchedule
The type that this builder constructs. Read more
Source§fn build(&self) -> Result<DownloadSchedule, ConfigBuildError>
fn build(&self) -> Result<DownloadSchedule, ConfigBuildError>
Build into a
Built Read moreSource§impl Clone for DownloadScheduleBuilder
impl Clone for DownloadScheduleBuilder
Source§fn clone(&self) -> DownloadScheduleBuilder
fn clone(&self) -> DownloadScheduleBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DownloadScheduleBuilder
impl Debug for DownloadScheduleBuilder
Source§impl Default for DownloadScheduleBuilder
impl Default for DownloadScheduleBuilder
Source§impl<'de> Deserialize<'de> for DownloadScheduleBuilder
impl<'de> Deserialize<'de> for DownloadScheduleBuilder
Source§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
Auto Trait Implementations§
impl Freeze for DownloadScheduleBuilder
impl RefUnwindSafe for DownloadScheduleBuilder
impl Send for DownloadScheduleBuilder
impl Sync for DownloadScheduleBuilder
impl Unpin for DownloadScheduleBuilder
impl UnwindSafe for DownloadScheduleBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more