pub struct App {Show 13 fields
pub tab: Tab,
pub focus: Focus,
pub overlay: Overlay,
pub sessions: Vec<SessionInfo>,
pub jobs: Vec<Job>,
pub tunnel_state: Option<TunnelState>,
pub config_fields: Vec<ConfigField>,
pub selected_session: usize,
pub selected_job: usize,
pub selected_config: usize,
pub spinner_frame: usize,
pub status: Option<StatusToast>,
pub should_quit: bool,
}Fields§
§tab: Tab§focus: Focus§overlay: Overlay§sessions: Vec<SessionInfo>§jobs: Vec<Job>§tunnel_state: Option<TunnelState>§config_fields: Vec<ConfigField>§selected_session: usize§selected_job: usize§selected_config: usize§spinner_frame: usize§status: Option<StatusToast>§should_quit: boolImplementations§
Source§impl App
impl App
pub fn new() -> Self
pub fn set_status(&mut self, message: impl Into<String>, kind: StatusKind)
pub fn clear_expired_status(&mut self)
pub fn selected_session_info(&self) -> Option<&SessionInfo>
pub fn selected_config_field(&self) -> Option<&ConfigField>
Sourcepub fn move_selection(&mut self, delta: i64)
pub fn move_selection(&mut self, delta: i64)
Wrap-safe cursor movement for the active tab’s list.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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