pub struct DirToleranceBuilder { /* private fields */ }Expand description
Builder for DirTolerance.
Implementations§
Source§impl DirToleranceBuilder
impl DirToleranceBuilder
Sourcepub fn pre_valid_tolerance(&mut self, value: Duration) -> &mut Self
pub fn pre_valid_tolerance(&mut self, value: Duration) -> &mut Self
For how long before a directory document is valid should we accept it?
Having a nonzero value here allows us to tolerate a little clock skew.
Defaults to 1 day.
Sourcepub fn post_valid_tolerance(&mut self, value: Duration) -> &mut Self
pub fn post_valid_tolerance(&mut self, value: Duration) -> &mut Self
For how long after a directory document is valid should we consider it usable?
Having a nonzero value here allows us to tolerate a little clock skew, and makes us more robust to temporary failures for the directory authorities to reach consensus.
Defaults to 3 days (per prop212).
Sourcepub fn build(&self) -> Result<DirTolerance, ConfigBuildError>
pub fn build(&self) -> Result<DirTolerance, ConfigBuildError>
Trait Implementations§
Source§impl Builder for DirToleranceBuilder
impl Builder for DirToleranceBuilder
Source§type Built = DirTolerance
type Built = DirTolerance
The type that this builder constructs
Source§fn build(&self) -> Result<DirTolerance, ConfigBuildError>
fn build(&self) -> Result<DirTolerance, ConfigBuildError>
Build into a
Built Read moreSource§impl Clone for DirToleranceBuilder
impl Clone for DirToleranceBuilder
Source§fn clone(&self) -> DirToleranceBuilder
fn clone(&self) -> DirToleranceBuilder
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 DirToleranceBuilder
impl Debug for DirToleranceBuilder
Source§impl Default for DirToleranceBuilder
impl Default for DirToleranceBuilder
Source§impl<'de> Deserialize<'de> for DirToleranceBuilder
impl<'de> Deserialize<'de> for DirToleranceBuilder
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 DirToleranceBuilder
impl RefUnwindSafe for DirToleranceBuilder
impl Send for DirToleranceBuilder
impl Sync for DirToleranceBuilder
impl Unpin for DirToleranceBuilder
impl UnwindSafe for DirToleranceBuilder
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