Struct cacache::index::RemoveOpts
source · pub struct RemoveOpts { /* private fields */ }Expand description
Builder for options and flags for remove cache entry.
Implementations§
source§impl RemoveOpts
impl RemoveOpts
sourcepub fn remove_fully(self, remove_fully: bool) -> Self
pub fn remove_fully(self, remove_fully: bool) -> Self
Set the remove fully option If remove_fully is set to true then the index file itself will be physically deleted rather than appending a null.
sourcepub fn remove_sync<P, K>(self, cache: P, key: K) -> Result<()>
pub fn remove_sync<P, K>(self, cache: P, key: K) -> Result<()>
Removes an individual index metadata entry. The associated content will be left in the cache.
Trait Implementations§
source§impl Clone for RemoveOpts
impl Clone for RemoveOpts
source§fn clone(&self) -> RemoveOpts
fn clone(&self) -> RemoveOpts
Returns a copy 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 Default for RemoveOpts
impl Default for RemoveOpts
source§fn default() -> RemoveOpts
fn default() -> RemoveOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RemoveOpts
impl Send for RemoveOpts
impl Sync for RemoveOpts
impl Unpin for RemoveOpts
impl UnwindSafe for RemoveOpts
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