pub struct LaunchAppPrompt {Show 16 fields
pub simulator_id: Uuid,
pub step: LaunchAppStep,
pub all_apps: Vec<InstalledApp>,
pub app_index: i64,
pub app_scroll_offset: i64,
pub show_system: bool,
pub chosen_language: Option<&'static LanguageOption>,
pub language_index: i64,
pub language_scroll_offset: i64,
pub language_filter: String,
pub is_language_filter_focused: bool,
pub region_index: i64,
pub region_scroll_offset: i64,
pub region_filter: String,
pub is_region_filter_focused: bool,
pub error: Option<String>,
}Fields§
§simulator_id: Uuid§step: LaunchAppStep§all_apps: Vec<InstalledApp>§app_index: i64§app_scroll_offset: i64§show_system: bool§chosen_language: Option<&'static LanguageOption>Language attached while chaining through PickLanguage into
PickRegion (see launch_app_reducer). None when the region
picker was reached directly (a region-only launch), which also
distinguishes what Esc means once inside PickRegion.
language_index: i64§language_scroll_offset: i64§language_filter: String§is_language_filter_focused: bool§region_index: i64§region_scroll_offset: i64§region_filter: String§is_region_filter_focused: bool§error: Option<String>Implementations§
Source§impl LaunchAppPrompt
impl LaunchAppPrompt
pub fn new(simulator_id: Uuid) -> Self
pub fn app_viewport(rows: i64) -> i64
Sourcepub fn language_viewport(&self, rows: i64) -> i64
pub fn language_viewport(&self, rows: i64) -> i64
The language filter is a conditional banner (visible once focused or
once something has been typed) — mirrors
CreateWizard::device_type_viewport’s filter-banner accounting, and
the reducer’s scroll math and the view’s layout must agree on it.
Sourcepub fn region_viewport(&self, rows: i64) -> i64
pub fn region_viewport(&self, rows: i64) -> i64
Same accounting as language_viewport, for the region filter banner.
pub fn apps(&self) -> Vec<&InstalledApp>
pub fn selected_app(&self) -> Option<&InstalledApp>
pub fn visible_languages(&self) -> Vec<&'static LanguageOption>
pub fn selected_language(&self) -> Option<&'static LanguageOption>
pub fn visible_regions(&self) -> Vec<&'static RegionOption>
pub fn selected_region(&self) -> Option<&'static RegionOption>
Trait Implementations§
Source§impl Clone for LaunchAppPrompt
impl Clone for LaunchAppPrompt
Source§fn clone(&self) -> LaunchAppPrompt
fn clone(&self) -> LaunchAppPrompt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaunchAppPrompt
impl Debug for LaunchAppPrompt
Source§impl PartialEq for LaunchAppPrompt
impl PartialEq for LaunchAppPrompt
impl StructuralPartialEq for LaunchAppPrompt
Auto Trait Implementations§
impl Freeze for LaunchAppPrompt
impl RefUnwindSafe for LaunchAppPrompt
impl Send for LaunchAppPrompt
impl Sync for LaunchAppPrompt
impl Unpin for LaunchAppPrompt
impl UnsafeUnpin for LaunchAppPrompt
impl UnwindSafe for LaunchAppPrompt
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