use std::collections::HashSet; use std::path::PathBuf; use tokio::sync::{mpsc, oneshot}; use uuid::Uuid; use super::error::Result; use super::{PayloadData, UpdateMeta, UpdateStatus, UpdateStoreInfo}; pub enum UpdateMsg { Update { uuid: Uuid, meta: UpdateMeta, data: mpsc::Receiver>, 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>, }, }