use tokio::sync::mpsc::{channel, Receiver, Sender};
use crate::minecraft::install::{
AssetInstallationUpdate, ClientInstallationUpdate, LibraryInstallationUpdate,
LogConfigInstallationUpdate,
};
#[derive(Clone, Debug)]
pub enum InstallationUpdate {
Library((String, LibraryInstallationUpdate)),
Asset((String, AssetInstallationUpdate)),
LogConfig(LogConfigInstallationUpdate),
Client(ClientInstallationUpdate),
}
impl InstallationUpdate {
pub fn channel(buffer: usize) -> (Sender<Self>, Receiver<Self>) {
channel(buffer)
}
}