Skip to main content

AppEvent

Enum AppEvent 

Source
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

Fields

§alias: String
§rtt_ms: Option<u32>
§generation: u64
§

SyncComplete

Fields

§provider: String
§

SyncPartial

Fields

§provider: String
§failures: usize
§total: usize
§

SyncError

Fields

§provider: String
§message: String
§

SyncProgress

Fields

§provider: String
§message: String
§

UpdateAvailable

Fields

§version: String
§headline: Option<String>
§

FileBrowserListing

Fields

§alias: String
§path: String
§

ScpComplete

Fields

§alias: String
§success: bool
§message: String
§

SnippetHostDone

Fields

§run_id: u64
§alias: String
§stdout: String
§stderr: String
§exit_code: Option<i32>
§

SnippetAllDone

Fields

§run_id: u64
§

SnippetProgress

Fields

§run_id: u64
§completed: usize
§total: usize
§

ContainerListing

§

ContainerActionComplete

Fields

§alias: String
§result: Result<(), String>
§

VaultSignResult

Fields

§alias: String
§certificate_file: String

Snapshot 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.

§success: bool
§message: String
§

VaultSignProgress

Fields

§alias: String
§done: usize
§total: usize
§

VaultSignAllDone

Fields

§signed: u32
§failed: u32
§skipped: u32
§cancelled: bool
§aborted_message: Option<String>
§first_error: Option<String>
§

CertCheckResult

Fields

§alias: String
§status: CertStatus
§

CertCheckError

Fields

§alias: String
§message: String
§

PollError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V