pub enum AppEvent {
Show 21 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<(ContainerRuntime, Vec<ContainerInfo>), ContainerError>,
},
ContainerActionComplete {
alias: String,
action: ContainerAction,
result: Result<(), 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
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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