#[non_exhaustive]pub enum RunMachineActionRequestAction {
AddSshKey(SshKey),
RemoveSshKeyFingerprint(String),
RestartMachine(RestartMachineAction),
CancelRestart(bool),
EndSessionId(String),
}Expand description
The oneof RunMachineActionRequest::action: one of its members.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AddSshKey(SshKey)
label: one line, ≤100 chars; empty = the key’s comment. An existing key gets the new label.
RemoveSshKeyFingerprint(String)
A Machine::ssh_keys fingerprint; its sessions end. ErrorCode::NotFound = no such key.
RestartMachine(RestartMachineAction)
Containers come back per restart policy. A new call before the restart replaces it; after (Machine::boot_time changed), restarts again.
CancelRestart(bool)
True = cancels the scheduled restart.
EndSessionId(String)
A Machine::sessions id: ends it now (its key can open new ones until removed). ErrorCode::NotFound = ended.
Trait Implementations§
impl StructuralPartialEq for RunMachineActionRequestAction
Auto Trait Implementations§
impl Freeze for RunMachineActionRequestAction
impl RefUnwindSafe for RunMachineActionRequestAction
impl Send for RunMachineActionRequestAction
impl Sync for RunMachineActionRequestAction
impl Unpin for RunMachineActionRequestAction
impl UnsafeUnpin for RunMachineActionRequestAction
impl UnwindSafe for RunMachineActionRequestAction
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