pub struct AppState {Show 15 fields
pub simulators: Vec<Simulator>,
pub selected_index: i64,
pub main_scroll_offset: i64,
pub filter_query: String,
pub is_filter_focused: bool,
pub status_message: Option<String>,
pub last_error: Option<String>,
pub pending_operations: HashMap<Uuid, PendingOperation>,
pub is_quitting: bool,
pub rows: i64,
pub cols: i64,
pub recording_device_id: Option<Uuid>,
pub recording_path: Option<PathBuf>,
pub modal: Option<Modal>,
pub url_history: Vec<String>,
}Fields§
§simulators: Vec<Simulator>§selected_index: i64§main_scroll_offset: i64§filter_query: String§is_filter_focused: bool§status_message: Option<String>§last_error: Option<String>§pending_operations: HashMap<Uuid, PendingOperation>§is_quitting: bool§rows: i64§cols: i64§recording_device_id: Option<Uuid>§recording_path: Option<PathBuf>§modal: Option<Modal>§url_history: Vec<String>Implementations§
Source§impl AppState
impl AppState
pub fn is_recording(&self) -> bool
pub fn visible_simulators(&self) -> Vec<&Simulator>
pub fn selected_simulator(&self) -> Option<&Simulator>
Sourcepub fn main_list_viewport(&self) -> i64
pub fn main_list_viewport(&self) -> i64
Conservative count of simulator rows that fit. The view walks the list
from main_scroll_offset and stops when body height is exhausted; the
2-line headroom leaves room for runtime-group headers without exact
counting.
All modals except Appearance, ConfirmErase, and ConfirmDelete are
rendered as floating popup overlays on top of the simulator list, so
they do not consume any banner rows in the main layout.
Sourcepub fn scroll(offset: i64, index: i64, viewport: i64) -> i64
pub fn scroll(offset: i64, index: i64, viewport: i64) -> i64
Scroll-on-edge offset for a windowed list. Returns the new top-visible index given the current offset, the focused index, and the viewport.
pub fn sort(simulators: Vec<Simulator>) -> Vec<Simulator>
Trait Implementations§
impl StructuralPartialEq for AppState
Auto Trait Implementations§
impl Freeze for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
impl UnwindSafe for AppState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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