pub struct OptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> OptionsBuilder<S>
impl<S: State> OptionsBuilder<S>
Sourcepub fn build(self) -> Optionswhere
S: IsComplete,
pub fn build(self) -> Optionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn max_current_age(
self,
duration: Duration,
) -> Result<OptionsBuilder<SetMaxCurrentAge<S>>, Error>where
S::MaxCurrentAge: IsUnset,
pub fn max_current_age(
self,
duration: Duration,
) -> Result<OptionsBuilder<SetMaxCurrentAge<S>>, Error>where
S::MaxCurrentAge: IsUnset,
Sourcepub fn maybe_max_current_age(
self,
value: Option<Duration>,
) -> Result<OptionsBuilder<SetMaxCurrentAge<S>>, Error>where
S::MaxCurrentAge: IsUnset,
pub fn maybe_max_current_age(
self,
value: Option<Duration>,
) -> Result<OptionsBuilder<SetMaxCurrentAge<S>>, Error>where
S::MaxCurrentAge: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for OptionsBuilder<S>
impl<S> RefUnwindSafe for OptionsBuilder<S>
impl<S> Send for OptionsBuilder<S>
impl<S> Sync for OptionsBuilder<S>
impl<S> Unpin for OptionsBuilder<S>
impl<S> UnwindSafe for OptionsBuilder<S>
Blanket Implementations§
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