pub enum AppEvent {
Show 24 variants
Key(KeyEvent),
Tick,
PingResult {
alias: String,
rtt_ms: Option<u32>,
generation: u64,
},
SyncComplete {
provider: String,
hosts: Vec<ProviderHost>,
},
SyncPartial {
provider: String,
hosts: Vec<ProviderHost>,
failures: usize,
total: usize,
},
SyncError {
provider: String,
message: String,
},
SyncProgress {
provider: String,
message: String,
},
UpdateAvailable {
version: String,
headline: Option<String>,
},
FileBrowserListing {
alias: String,
path: String,
entries: Result<Vec<FileEntry>, String>,
},
ScpComplete {
alias: String,
success: bool,
message: String,
},
SnippetHostDone {
run_id: u64,
alias: String,
stdout: String,
stderr: String,
exit_code: Option<i32>,
},
SnippetAllDone {
run_id: u64,
},
SnippetProgress {
run_id: u64,
completed: usize,
total: usize,
},
ContainerListing {
alias: String,
result: Result<ContainerListing, ContainerError>,
},
ContainerActionComplete {
alias: String,
action: ContainerAction,
result: Result<(), String>,
},
ContainerInspectComplete {
alias: String,
container_id: String,
result: Box<Result<ContainerInspect, String>>,
},
ContainerLogsComplete {
alias: String,
container_id: String,
container_name: String,
result: Result<Vec<String>, String>,
},
ContainerLogsTailComplete {
alias: String,
container_id: String,
result: Box<Result<Vec<String>, String>>,
},
VaultSignResult {
alias: String,
certificate_file: String,
success: bool,
message: String,
},
VaultSignProgress {
alias: String,
done: usize,
total: usize,
},
VaultSignAllDone {
signed: u32,
failed: u32,
skipped: u32,
cancelled: bool,
aborted_message: Option<String>,
first_error: Option<String>,
},
CertCheckResult {
alias: String,
status: CertStatus,
},
CertCheckError {
alias: String,
message: String,
},
PollError,
}Expand description
Application events.
Variants§
Key(KeyEvent)
Tick
PingResult
SyncComplete
SyncPartial
SyncError
SyncProgress
UpdateAvailable
FileBrowserListing
ScpComplete
SnippetHostDone
SnippetAllDone
SnippetProgress
ContainerListing
ContainerActionComplete
ContainerInspectComplete
Result of a docker inspect (or podman inspect) call fired by
the containers overview detail panel. Cached per (alias,
container_id) once received so repeat fetches inside the TTL
window are skipped.
ContainerLogsComplete
Result of <runtime> logs --tail 200 over SSH for a container
the user opened with l. Populates Screen::ContainerLogs.body
(or .error) when received.
Fields
ContainerLogsTailComplete
Result of a short <runtime> logs --tail N fetch fired by the
containers-overview detail panel to populate the LOGS card.
Distinct from ContainerLogsComplete so the dedicated logs
viewer (l) and the detail-panel card stay on separate caches.
VaultSignResult
Fields
certificate_file: StringSnapshot of the host’s CertificateFile directive at signing time.
Carried in the event so the main loop never has to re-look up the
host (which would be O(n) and racy under concurrent renames). Empty
when the host has no CertificateFile set; should_write_certificate_file
uses this directly to decide whether to write a default directive.
VaultSignProgress
VaultSignAllDone
Fields
CertCheckResult
CertCheckError
PollError
Auto Trait Implementations§
impl Freeze for AppEvent
impl RefUnwindSafe for AppEvent
impl Send for AppEvent
impl Sync for AppEvent
impl Unpin for AppEvent
impl UnsafeUnpin for AppEvent
impl UnwindSafe for AppEvent
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more