pub struct App {Show 15 fields
pub networks: Vec<WifiNetwork>,
pub selected_index: usize,
pub state: AppState,
pub password_input: String,
pub selected_network: Option<WifiNetwork>,
pub status_message: String,
pub should_quit: bool,
pub connection_success: bool,
pub connection_error: Option<String>,
pub is_disconnect_operation: bool,
pub adapter_name: Option<String>,
pub network_count: usize,
pub last_scan_time: Option<Instant>,
pub connection_start_time: Option<Instant>,
pub password_visible: bool,
}Fields§
§networks: Vec<WifiNetwork>§selected_index: usize§state: AppState§password_input: String§selected_network: Option<WifiNetwork>§status_message: String§should_quit: bool§connection_success: bool§connection_error: Option<String>§is_disconnect_operation: bool§adapter_name: Option<String>§network_count: usize§last_scan_time: Option<Instant>§connection_start_time: Option<Instant>§password_visible: boolImplementations§
Source§impl App
impl App
pub fn new() -> App
pub fn next(&mut self)
pub fn previous(&mut self)
pub fn selected_network_in_list(&self) -> Option<&WifiNetwork>
pub fn begin_operation( &mut self, network: WifiNetwork, operation: OperationKind, )
pub fn activate_selected_network(&mut self)
pub fn add_char_to_password(&mut self, c: char)
pub fn remove_char_from_password(&mut self)
pub fn confirm_password(&mut self)
pub fn quit(&mut self)
pub fn finish_operation(&mut self, succeeded: bool, error: Option<String>)
pub fn back_to_network_list(&mut self)
pub fn start_scan(&mut self)
pub fn handle_scan_error(&mut self, error: impl Display)
pub fn update_selection_after_rescan(&mut self)
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> 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