pub enum AlmeCommand {
Ping,
LogTail {
n: usize,
},
Status {
deployment_id: Option<String>,
},
ModuleList,
ModuleInstall {
path: String,
},
ModuleDeploy {
file: String,
},
ModuleStart {
deployment_id: String,
},
ModuleStop {
deployment_id: String,
},
}Expand description
A high-level, type-safe ALME command.
Variants§
Ping
Ping the server: cmd = "ping", args = {}
LogTail
Tail the log of one or all deployments
Status
Get status of one or all deployments
ModuleList
List all deployments
ModuleInstall
Install a module: cmd = "module:install", args = { “path”: “…” }
ModuleDeploy
Deploy from file: cmd = "deploy", args = { “file”: “…” }
ModuleStart
Start a deployment by ID
ModuleStop
Stop a deployment by ID
Trait Implementations§
Source§impl Clone for AlmeCommand
impl Clone for AlmeCommand
Source§fn clone(&self) -> AlmeCommand
fn clone(&self) -> AlmeCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlmeCommand
impl Debug for AlmeCommand
Source§impl<'de> Deserialize<'de> for AlmeCommand
impl<'de> Deserialize<'de> for AlmeCommand
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 AlmeCommand
impl RefUnwindSafe for AlmeCommand
impl Send for AlmeCommand
impl Sync for AlmeCommand
impl Unpin for AlmeCommand
impl UnwindSafe for AlmeCommand
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