Skip to main content

UiSelection

Struct UiSelection 

Source
pub struct UiSelection { /* private fields */ }

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.

Source

pub fn list_state(&self) -> &ListState

Source

pub fn list_state_mut(&mut self) -> &mut ListState

Source

pub fn key_picker(&self) -> &PickerState

Source

pub fn key_picker_mut(&mut self) -> &mut PickerState

Source

pub fn password_picker(&self) -> &PickerState

Source

pub fn password_picker_mut(&mut self) -> &mut PickerState

Source

pub fn proxyjump_picker(&self) -> &PickerState

Source

pub fn proxyjump_picker_mut(&mut self) -> &mut PickerState

Source

pub fn vault_role_picker(&self) -> &PickerState

Source

pub fn vault_role_picker_mut(&mut self) -> &mut PickerState

Source

pub fn tag_picker_state(&self) -> &ListState

Source

pub fn tag_picker_state_mut(&mut self) -> &mut ListState

Source

pub fn bulk_tag_editor_state(&self) -> &ListState

Source

pub fn bulk_tag_editor_state_mut(&mut self) -> &mut ListState

Source

pub fn theme_picker(&self) -> &ThemePickerState

Source

pub fn theme_picker_mut(&mut self) -> &mut ThemePickerState

Source

pub fn provider_list_state(&self) -> &ListState

Source

pub fn provider_list_state_mut(&mut self) -> &mut ListState

Source

pub fn tunnel_list_state(&self) -> &ListState

Source

pub fn tunnel_list_state_mut(&mut self) -> &mut ListState

Source

pub fn tunnels_overview_state(&self) -> &ListState

Source

pub fn tunnels_overview_state_mut(&mut self) -> &mut ListState

Source

pub fn containers_overview_state(&self) -> &ListState

Source

pub fn containers_overview_state_mut(&mut self) -> &mut ListState

Source

pub fn tunnel_host_picker_state(&self) -> &ListState

Source

pub fn tunnel_host_picker_state_mut(&mut self) -> &mut ListState

Source

pub fn tunnel_host_picker_query(&self) -> &String

Source

pub fn tunnel_host_picker_query_mut(&mut self) -> &mut String

Source

pub fn set_tunnel_host_picker_query(&mut self, query: String)

Source

pub fn container_host_picker_state(&self) -> &ListState

Source

pub fn container_host_picker_state_mut(&mut self) -> &mut ListState

Source

pub fn container_host_picker_query(&self) -> &String

Source

pub fn container_host_picker_query_mut(&mut self) -> &mut String

Source

pub fn set_container_host_picker_query(&mut self, query: String)

Source

pub fn snippet_picker_state(&self) -> &ListState

Source

pub fn snippet_picker_state_mut(&mut self) -> &mut ListState

Source

pub fn snippet_search_mut(&mut self) -> Option<&mut String>

Source

pub fn region_picker(&self) -> &RegionPickerState

Source

pub fn region_picker_mut(&mut self) -> &mut RegionPickerState

Source

pub fn help_scroll(&self) -> u16

Source

pub fn set_help_scroll(&mut self, scroll: u16)

Source

pub fn detail_scroll(&self) -> u16

Source

pub fn set_detail_scroll(&mut self, scroll: u16)

Source

pub fn detail_toggle_pending(&self) -> bool

Source

pub fn set_detail_toggle_pending(&mut self, pending: bool)

Source

pub fn welcome_opened(&self) -> Option<Instant>

Source

pub fn set_welcome_opened(&mut self, when: Option<Instant>)

Source

pub fn esc_quit_hint_shown(&self) -> bool

Source

pub fn set_esc_quit_hint_shown(&mut self, shown: bool)

Source

pub fn known_hosts_count(&self) -> usize

Source

pub fn set_known_hosts_count(&mut self, count: usize)

Source

pub fn pending_connect(&self) -> Option<&(String, Option<String>)>

Source

pub fn take_pending_connect(&mut self) -> Option<(String, Option<String>)>

Take the queued connect, leaving None. Consumed by the event loop.

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