pub trait Remove<T> {
type Out;
type RemoveError: Error + Send + Sync + 'static;
// Required methods
fn remove(&mut self, id: &ObjectId) -> Result<Self::Out, Self::RemoveError>;
fn remove_all(
&mut self,
rid: &RepoId,
) -> Result<Self::Out, Self::RemoveError>;
}Expand description
Remove a COB object in the cache.
Required Associated Types§
type RemoveError: Error + Send + Sync + 'static
Required Methods§
Sourcefn remove(&mut self, id: &ObjectId) -> Result<Self::Out, Self::RemoveError>
fn remove(&mut self, id: &ObjectId) -> Result<Self::Out, Self::RemoveError>
Delete an object in the COB cache.
This assumes that the id is unique across repositories.
Sourcefn remove_all(&mut self, rid: &RepoId) -> Result<Self::Out, Self::RemoveError>
fn remove_all(&mut self, rid: &RepoId) -> Result<Self::Out, Self::RemoveError>
Delete all entries from a repo.