Remove

Trait Remove 

Source
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§

Source

type Out

The output type, if any, for a successful removal.

Source

type RemoveError: Error + Send + Sync + 'static

Required Methods§

Source

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.

Source

fn remove_all(&mut self, rid: &RepoId) -> Result<Self::Out, Self::RemoveError>

Delete all entries from a repo.

Implementors§

Source§

impl Remove<Issue> for StoreWriter

Source§

impl Remove<Patch> for StoreWriter

Source§

impl<R, C> Remove<Issue> for radicle::cob::issue::cache::Cache<R, C>
where C: Remove<Issue>,

Source§

impl<R, C> Remove<Patch> for radicle::cob::patch::cache::Cache<R, C>
where C: Remove<Patch>,

Source§

impl<T> Remove<T> for NoCache