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 and content 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. If remove_fully is set to false (default), the associated content will be left in the cache. If remove_fully is true, both the index entry and the contents will be physically removed from the disk
Sourcepub async fn remove<P, K>(self, cache: P, key: K) -> Result<()>
pub async fn remove<P, K>(self, cache: P, key: K) -> Result<()>
Removes an individual index metadata entry. If remove_fully is set to false (default), the associated content will be left in the cache. If remove_fully is true, both the index entry and the contents will be physically removed from the disk
Trait Implementations§
Source§impl Clone for RemoveOpts
impl Clone for RemoveOpts
Source§fn clone(&self) -> RemoveOpts
fn clone(&self) -> RemoveOpts
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 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 Freeze for RemoveOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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