pub struct EngineCachePruneOptsBuilder { /* private fields */ }
Expand description
Builder for EngineCachePruneOpts
.
Implementations§
Source§impl EngineCachePruneOptsBuilder
impl EngineCachePruneOptsBuilder
Sourcepub fn use_default_policy<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn use_default_policy<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Use the engine-wide default pruning policy if true, otherwise prune the whole cache of any releasable entries.
Sourcepub fn build(
&self,
) -> Result<EngineCachePruneOpts, EngineCachePruneOptsBuilderError>
pub fn build( &self, ) -> Result<EngineCachePruneOpts, EngineCachePruneOptsBuilderError>
Trait Implementations§
Source§impl Clone for EngineCachePruneOptsBuilder
impl Clone for EngineCachePruneOptsBuilder
Source§fn clone(&self) -> EngineCachePruneOptsBuilder
fn clone(&self) -> EngineCachePruneOptsBuilder
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 moreAuto Trait Implementations§
impl Freeze for EngineCachePruneOptsBuilder
impl RefUnwindSafe for EngineCachePruneOptsBuilder
impl Send for EngineCachePruneOptsBuilder
impl Sync for EngineCachePruneOptsBuilder
impl Unpin for EngineCachePruneOptsBuilder
impl UnwindSafe for EngineCachePruneOptsBuilder
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