use std::{collections::HashSet, path::PathBuf}; use tokio::sync::oneshot; use uuid::Uuid; use crate::index::Index; use super::error::Result; pub enum IndexResolverMsg { Get { uid: String, ret: oneshot::Sender>, }, Delete { uid: String, ret: oneshot::Sender>, }, List { ret: oneshot::Sender>>, }, Insert { uuid: Uuid, name: String, ret: oneshot::Sender>, }, SnapshotRequest { path: PathBuf, ret: oneshot::Sender>>, }, GetSize { ret: oneshot::Sender>, }, DumpRequest { path: PathBuf, ret: oneshot::Sender>>, }, }