pub enum Message {
Show 33 variants
VpsRegistryEmpty,
VpsListTitle,
VpsAdded {
name: String,
},
VpsRemoved {
name: String,
},
VpsDuplicate {
name: String,
},
VpsNotFound {
name: String,
},
VpsActiveSelected {
name: String,
},
ConfigPathLabel,
ConfigPath {
path: String,
},
ConfigNoKeys,
ErrorLoadConfig,
ErrorSaveConfig,
ErrorSshConnection,
ErrorCommandFailed,
ErrorInvalidArgument {
detail: String,
},
ErrorGeneric {
detail: String,
},
VpsEdited {
name: String,
},
ExportCompleted {
path: String,
},
ImportCompleted,
PrimaryKeyReady {
source: String,
key_file: String,
},
ReencryptCompleted {
hosts: usize,
},
Success {
detail: String,
},
TunnelActive {
local_port: u16,
remote_host: String,
remote_port: u16,
vps_name: String,
},
TunnelPressCtrlC,
HealthCheckOk {
name: String,
},
HealthCheckNoVps,
HealthCheckFailed {
name: String,
detail: String,
},
HealthCheckLatency {
name: String,
latency_ms: u64,
},
OperationCancelled,
ScpUploadCompleted {
bytes: u64,
ms: u64,
},
ScpDownloadCompleted {
bytes: u64,
ms: u64,
},
ScpUploadFileOnly,
ScpDownloadLocalNotDirectory,
}Expand description
All system UI messages.
SINGLE source of user-visible strings. Each variant has an exhaustive
translation in en() and pt(). FORBIDDEN to use UI literals outside this enum.
Variants with dynamic fields (e.g. { name: String }) allow including
contextual data in the message. Message is not Copy because
String fields are not Copy.
Variants§
VpsRegistryEmpty
No VPS registered in the configuration file.
VpsListTitle
Header for the registered VPS listing.
VpsAdded
VPS successfully added to the registry.
VpsRemoved
VPS successfully removed from the registry.
VpsDuplicate
Attempt to add a VPS that already exists.
VpsNotFound
Requested VPS was not found in the registry.
VpsActiveSelected
Active VPS selected for subsequent operations.
ConfigPathLabel
Label for the configuration file path.
ConfigPath
Current configuration file path.
ConfigNoKeys
No API keys configured in the system.
ErrorLoadConfig
Failed to load the configuration file.
ErrorSaveConfig
Failed to save the configuration file.
ErrorSshConnection
Error establishing SSH connection to the remote server.
ErrorCommandFailed
Remote SSH command execution failed.
ErrorInvalidArgument
Invalid argument supplied to the operation.
ErrorGeneric
Generic error with a textual description.
VpsEdited
VPS record edited successfully.
ExportCompleted
Export completed.
ImportCompleted
Import completed.
PrimaryKeyReady
Primary key ready.
ReencryptCompleted
Re-encrypt completed.
Success
Generic human success line (already localized payload).
TunnelActive
Active SSH tunnel with port and host information.
Fields
TunnelPressCtrlC
Instruction to stop the tunnel via Ctrl+C.
HealthCheckOk
Successful VPS connectivity check.
HealthCheckNoVps
No active VPS selected for health check.
HealthCheckFailed
VPS connectivity check failed.
HealthCheckLatency
Health-check result with latency.
OperationCancelled
Operation cancelled by user signal (Ctrl+C or SIGTERM).
ScpUploadCompleted
SCP upload completed.
ScpDownloadCompleted
SCP download completed.
ScpUploadFileOnly
Upload refused: local path is a directory (file-only, no -r).
ScpDownloadLocalNotDirectory
Download refused: local path is already a directory.
Implementations§
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.