mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a696464e4123d15cfaedf4727776e55948369
15 lines
321 B
Rust
15 lines
321 B
Rust
use crate::db::{ClipboardDb, SledClipboardDb};
|
|
|
|
use crate::db::StashError;
|
|
|
|
pub trait WipeCommand {
|
|
fn wipe(&self) -> Result<(), StashError>;
|
|
}
|
|
|
|
impl WipeCommand for SledClipboardDb {
|
|
fn wipe(&self) -> Result<(), StashError> {
|
|
self.wipe_db()?;
|
|
log::info!("Database wiped");
|
|
Ok(())
|
|
}
|
|
}
|