use std::path::PathBuf; use tokio::sync::{mpsc, oneshot}; use uuid::Uuid; use super::{PayloadData, Result, UpdateMeta, UpdateStatus}; 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>, }, Create { uuid: Uuid, ret: oneshot::Sender>, }, Snapshot { uuid: Uuid, path: PathBuf, ret: oneshot::Sender>, }, }