pub enum CommandType {
Share(String),
Scan,
Ls,
Download(String, String),
Status,
}
Expand description
Depending on which command the client enters into the console, its type will be determined, the command will be serialized and then sent to the daemon.
Variants§
Trait Implementations§
Source§impl Debug for CommandType
impl Debug for CommandType
Source§impl<'de> Deserialize<'de> for CommandType
impl<'de> Deserialize<'de> for CommandType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandType
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more