1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/// Crate for containing common commands for client and daemon /// Example: /// let command = CommandType::Status; use serde::{Serialize, Deserialize}; #[derive(Serialize, Deserialize, Debug)] pub enum CommandType { Share(String), Scan, Ls, Download(String, String), Status, } #[derive(Serialize, Deserialize, Debug)] pub enum ResponseType { ShareScan, LsStatus(String), Download(bool), Error(String) }