pub struct CachingOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CachingOptionsBuilder<S>
impl<S: State> CachingOptionsBuilder<S>
Sourcepub fn build(self) -> CachingOptionswhere
S: IsComplete,
pub fn build(self) -> CachingOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn max_age(self, value: Duration) -> CachingOptionsBuilder<SetMaxAge<S>>where
S::MaxAge: IsUnset,
pub fn max_age(self, value: Duration) -> CachingOptionsBuilder<SetMaxAge<S>>where
S::MaxAge: IsUnset,
Sourcepub fn maybe_max_age(
self,
value: Option<Duration>,
) -> CachingOptionsBuilder<SetMaxAge<S>>where
S::MaxAge: IsUnset,
pub fn maybe_max_age(
self,
value: Option<Duration>,
) -> CachingOptionsBuilder<SetMaxAge<S>>where
S::MaxAge: IsUnset,
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for CachingOptionsBuilder<S>
impl<S> RefUnwindSafe for CachingOptionsBuilder<S>
impl<S> Send for CachingOptionsBuilder<S>
impl<S> Sync for CachingOptionsBuilder<S>
impl<S> Unpin for CachingOptionsBuilder<S>
impl<S> UnsafeUnpin for CachingOptionsBuilder<S>
impl<S> UnwindSafe for CachingOptionsBuilder<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