Enum sota::datatype::command::Command
[−]
[src]
pub enum Command { Authenticate(Option<ClientCredentials>), Shutdown, GetUpdateRequests, ListInstalledPackages, ListSystemInfo, StartDownload(UpdateRequestId), StartInstall(UpdateRequestId), SendInstalledPackages(Vec<Package>), SendInstalledSoftware(InstalledSoftware), SendSystemInfo, SendUpdateReport(UpdateReport), }
System-wide commands that are sent to the interpreter.
Variants
Authenticate | Authenticate with the auth server. | |
Shutdown | Shutdown the client immediately. | |
GetUpdateRequests | Check for any pending or in-flight updates. | |
ListInstalledPackages | List the installed packages on the system. | |
ListSystemInfo | List the system information. | |
StartDownload | Start downloading an update. | |
StartInstall | Start installing an update. | |
SendInstalledPackages | Send a list of packages to the Core server. | |
SendInstalledSoftware | Send a list of all packages and firmware to the Core server. | |
SendSystemInfo | Send the system information to the Core server. | |
SendUpdateReport | Send a package update report to the Core server. |
Trait Implementations
impl Display for Command
[src]
impl FromStr for Command
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Command, Error>
Parses a string s
to return a value of this type. Read more
Derived Implementations
impl Clone for Command
[src]
fn clone(&self) -> Command
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Command
[src]
impl Eq for Command
[src]
impl PartialEq for Command
[src]
fn eq(&self, __arg_0: &Command) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Command) -> bool
This method tests for !=
.
impl Encodable for Command
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.