Skip to main content

UiSelection

Struct UiSelection 

Source
pub struct UiSelection {
Show 26 fields pub list_state: ListState, pub key_picker: PickerState, pub password_picker: PickerState, pub proxyjump_picker: PickerState, pub vault_role_picker: PickerState, pub tag_picker_state: ListState, pub bulk_tag_editor_state: ListState, pub theme_picker: ThemePickerState, pub provider_list_state: ListState, pub tunnel_list_state: ListState, pub tunnels_overview_state: ListState, pub containers_overview_state: ListState, pub tunnel_host_picker_state: ListState, pub tunnel_host_picker_query: String, pub container_host_picker_state: ListState, pub container_host_picker_query: String, pub snippet_picker_state: ListState, pub snippet_search: Option<String>, pub region_picker: RegionPickerState, pub help_scroll: u16, pub detail_scroll: u16, pub detail_toggle_pending: bool, pub welcome_opened: Option<Instant>, pub esc_quit_hint_shown: bool, pub known_hosts_count: usize, pub pending_connect: Option<(String, Option<String>)>,
}

Fields§

§list_state: ListState§key_picker: PickerState§password_picker: PickerState§proxyjump_picker: PickerState§vault_role_picker: PickerState§tag_picker_state: ListState§bulk_tag_editor_state: ListState§theme_picker: ThemePickerState§provider_list_state: ListState§tunnel_list_state: ListState§tunnels_overview_state: ListState§containers_overview_state: ListState§tunnel_host_picker_state: ListState

Cursor for the host picker reached from the tunnels overview when adding a new tunnel. Indexes into the editable-hosts slice built at render time (hosts from included files are excluded).

§tunnel_host_picker_query: String

Live fuzzy-search query for the tunnel host picker. Always-on input mode: every printable keystroke appends to the query and shrinks the candidate set. Empty string means “show all”.

§container_host_picker_state: ListState

Cursor + live query for the containers-tab a host picker. Mirrors the tunnel host picker pair; kept separate so the two pickers can be open back-to-back without state bleed.

§container_host_picker_query: String§snippet_picker_state: ListState§snippet_search: Option<String>§region_picker: RegionPickerState§help_scroll: u16§detail_scroll: u16§detail_toggle_pending: bool

Set by handler, consumed by AnimationState to trigger detail panel transition.

§welcome_opened: Option<Instant>

Tracks when the welcome screen was opened to auto-dismiss it.

§esc_quit_hint_shown: bool

Set once the first time Esc-on-empty-list hint is shown per process.

§known_hosts_count: usize

Welcome-screen heuristic: number of known hosts at last render.

§pending_connect: Option<(String, Option<String>)>

Pending SSH dispatch queued by connect actions; consumed by the event loop.

Implementations§

Source§

impl UiSelection

Source

pub fn new_with_initial_selection(initial: Option<usize>) -> Self

Construct with all picker/list state defaulted and the host list selection pre-positioned at initial (the first selectable host or pattern in the display list).

Source

pub fn queue_connect(&mut self, alias: String, askpass: Option<String>)

Queue an SSH connect for the event loop to pick up via the next pending_connect.take(). askpass carries the resolved per-host password source so the event loop can prepare a SSH_ASKPASS env before spawning the child.

Enter snippet picker search mode with an empty query.

Exit snippet picker search mode. Idempotent.

Trait Implementations§

Source§

impl Debug for UiSelection

Source§

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

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

impl Default for UiSelection

Source§

fn default() -> UiSelection

Returns the “default value” for a type. Read more

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