Skip to main content

Screen

Enum Screen 

Source
pub enum Screen {
Show 39 variants HostList, AddHost, EditHost { alias: String, }, ConfirmDelete { alias: String, }, Help { return_screen: Box<Screen>, }, KeyList, KeyDetail { index: usize, }, KeyPushPicker { key_index: usize, }, ConfirmKeyPush { key_index: usize, }, HostDetail { index: usize, }, TagPicker, ThemePicker, Providers, ProviderForm { id: ProviderConfigId, }, ProviderLabelMigration { provider: String, }, TunnelList { alias: String, }, TunnelForm { alias: String, editing: Option<usize>, }, TunnelHostPicker, SnippetPicker { target_aliases: Vec<String>, }, SnippetForm { target_aliases: Vec<String>, editing: Option<usize>, }, SnippetOutput { snippet_name: String, target_aliases: Vec<String>, }, SnippetParamForm { snippet: Snippet, target_aliases: Vec<String>, }, ConfirmHostKeyReset { alias: String, hostname: String, known_hosts_path: String, askpass: Option<String>, }, FileBrowser { alias: String, }, Containers { alias: String, }, ContainerHostPicker, ContainerLogs { alias: String, container_id: String, container_name: String, body: Vec<String>, fetched_at: u64, error: Option<String>, scroll: u16, last_render_height: u16, search: Option<ContainerLogsSearch>, }, ConfirmContainerRestart { alias: String, container_id: String, container_name: String, project: Option<String>, uptime: Option<String>, }, ConfirmContainerStop { alias: String, container_id: String, container_name: String, project: Option<String>, uptime: Option<String>, }, ContainerExecPrompt { alias: String, container_id: String, container_name: String, query: String, }, ConfirmStackRestart { alias: String, project: String, members: Vec<StackMember>, }, ConfirmHostRestartAll { alias: String, members: Vec<StackMember>, }, ConfirmHostStopAll { alias: String, members: Vec<StackMember>, }, ConfirmImport { count: usize, }, ConfirmPurgeStale { aliases: Vec<String>, provider: Option<String>, }, ConfirmVaultSign { signable: Vec<VaultSignTarget>, }, Welcome { has_backup: bool, host_count: usize, known_hosts_count: usize, }, BulkTagEditor, WhatsNew(WhatsNewState),
}
Expand description

Which screen is currently displayed.

Variants§

§

HostList

§

AddHost

§

EditHost

Fields

§alias: String
§

ConfirmDelete

Fields

§alias: String
§

Help

Fields

§return_screen: Box<Screen>
§

KeyList

§

KeyDetail

Fields

§index: usize
§

KeyPushPicker

Multi-host picker reached from the Keys tab by pressing p. key_index points into app.keys.list for the key to push. The picker shows hosts with checkbox selection; hosts whose vault_ssh role is configured are dimmed and not selectable (Vault SSH workflow uses signed certs, not authorized_keys appends).

Fields

§key_index: usize
§

ConfirmKeyPush

Destructive confirm shown after the picker commits. Footer renders action verbs both sides via design::confirm_footer_destructive. On y the worker thread is spawned and the screen returns to HostList; on n/Esc returns to the picker with selection intact.

The frozen alias list lives on app.keys.push.committed instead of inside the Screen variant: keeping the vec out of the enum prevents per-frame clones during overlay redraws and keeps the Screen payload uniformly small.

Fields

§key_index: usize
§

HostDetail

Fields

§index: usize
§

TagPicker

§

ThemePicker

§

Providers

§

ProviderForm

§

ProviderLabelMigration

Step 1 of the lazy add-second-config flow: ask the user to pick a label for the existing (bare) config of provider before opening the new-config form. The chosen label lives on app.providers.pending_label_migration until step 2 saves both configs together.

Fields

§provider: String
§

TunnelList

Fields

§alias: String
§

TunnelForm

Fields

§alias: String
§editing: Option<usize>
§

TunnelHostPicker

Host picker reached from the Tunnels overview when adding a new tunnel: the user must choose a host before the tunnel form opens. On confirm, transitions to TunnelForm { alias, editing: None }.

§

SnippetPicker

Fields

§target_aliases: Vec<String>
§

SnippetForm

Fields

§target_aliases: Vec<String>
§editing: Option<usize>
§

SnippetOutput

Fields

§snippet_name: String
§target_aliases: Vec<String>
§

SnippetParamForm

Fields

§snippet: Snippet
§target_aliases: Vec<String>
§

ConfirmHostKeyReset

Fields

§alias: String
§hostname: String
§known_hosts_path: String
§askpass: Option<String>
§

FileBrowser

Fields

§alias: String
§

Containers

Fields

§alias: String
§

ContainerHostPicker

Picker reached from the containers overview when adding a host to the cache (a). Lists hosts that have no cache entry yet; on Enter, spawns a docker ps listing for the chosen host and returns to the overview.

§

ContainerLogs

One-shot logs viewer for a single container. body is empty while the SSH docker logs --tail 200 call is in flight; once the result lands the lines populate it. scroll is line-based, 0 is the top. last_render_height is written by the renderer each frame so the logs-arrival path and G can compute the tail-anchored scroll without guessing the visible-area size.

Fields

§alias: String
§container_id: String
§container_name: String
§body: Vec<String>
§fetched_at: u64
§scroll: u16
§last_render_height: u16
§search: Option<ContainerLogsSearch>

/ search state. None when no search is active.

§

ConfirmContainerRestart

Confirm dialog for K (kick). restart a single running container. Reuses route_confirm_key so y/n/Esc are the only effective inputs; stake-test footer phrases the verb on both sides.

Fields

§alias: String
§container_id: String
§container_name: String
§project: Option<String>
§uptime: Option<String>
§

ConfirmContainerStop

Confirm dialog for S (stop). stop a single running container. Same key contract as ConfirmContainerRestart.

Fields

§alias: String
§container_id: String
§container_name: String
§project: Option<String>
§uptime: Option<String>
§

ContainerExecPrompt

Single-line prompt for an arbitrary command to run inside the container via docker exec -it. Submit hits the existing pending_container_exec flow with the typed command in place of the default bash || sh.

Fields

§alias: String
§container_id: String
§container_name: String
§query: String
§

ConfirmStackRestart

Confirm dialog for Ctrl-K (stack kick). Restarts every running member of a compose stack on a single host, sequentially. The drain queue + 30s cache TTL pace the work; we accept the trivial per-tick interleaving.

Fields

§alias: String
§project: String
§members: Vec<StackMember>
§

ConfirmHostRestartAll

Confirm dialog for K pressed on a host-divider row in the containers overview. Restarts every running container on the host, ignoring compose-project boundaries. Shares the bulk confirm shape with ConfirmStackRestart.

Fields

§alias: String
§members: Vec<StackMember>
§

ConfirmHostStopAll

Confirm dialog for S pressed on a host-divider row. Stops every running container on the host, sequentially.

Fields

§alias: String
§members: Vec<StackMember>
§

ConfirmImport

Fields

§count: usize
§

ConfirmPurgeStale

Fields

§aliases: Vec<String>
§provider: Option<String>
§

ConfirmVaultSign

Fields

§signable: Vec<VaultSignTarget>

Precomputed list of hosts that resolve to a Vault SSH role. Computed when the user presses V. certificate_file is the host’s existing CertificateFile directive (empty when unset) so the background worker checks renewal against the configured cert path.

§

Welcome

Fields

§has_backup: bool
§host_count: usize
§known_hosts_count: usize
§

BulkTagEditor

Bulk tag editor: tri-state checkbox picker that edits tags across all hosts in multi_select in one go. Opened via t when a multi-host selection is active.

§

WhatsNew(WhatsNewState)

What’s New overlay: shows recent changelog sections to the user after an upgrade. Opened via the upgrade toast or n key.

Implementations§

Source§

impl Screen

Source

pub fn variant_name(&self) -> &'static str

Stable short variant name used in state-transition logs. Omits inner fields so log lines never leak host aliases, paths or tokens.

Trait Implementations§

Source§

impl Clone for Screen

Source§

fn clone(&self) -> Screen

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Screen

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Screen

Source§

fn eq(&self, other: &Screen) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Screen

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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