use std::collections::HashSet; use std::path::PathBuf; use tokio::sync::oneshot; use uuid::Uuid; use super::error::Result; use super::{UpdateStatus, UpdateStoreInfo, Update}; pub enum UpdateMsg { Update { uuid: Uuid, update: Update, ret: oneshot::Sender>, }, ListUpdates { uuid: Uuid, ret: oneshot::Sender>>, }, GetUpdate { uuid: Uuid, ret: oneshot::Sender>, id: u64, }, Delete { uuid: Uuid, ret: oneshot::Sender>, }, Snapshot { uuids: HashSet, path: PathBuf, ret: oneshot::Sender>, }, Dump { uuids: HashSet, path: PathBuf, ret: oneshot::Sender>, }, GetInfo { ret: oneshot::Sender>, }, }