pub struct UiState {Show 30 fields
pub project_dir: PathBuf,
pub project_name: String,
pub app_id: String,
pub project_status: String,
pub targets: Vec<Target>,
pub devices: Vec<UiDevice>,
pub route: UiRoute,
pub theme_mode: UiThemeMode,
pub compact_mode: bool,
pub selected_target: Option<Target>,
pub selected_device: Option<String>,
pub init_name: String,
pub init_app_id: String,
pub init_local_path: String,
pub host: String,
pub port: String,
pub strict: bool,
pub release: bool,
pub detach: bool,
pub no_open: bool,
pub headless: bool,
pub command_runtime: CommandRuntime,
pub command_sessions: Vec<CommandSnapshot>,
pub active_command_session_id: Option<u64>,
pub last_active_log_line_count: usize,
pub refreshed_finished_sessions: Vec<u64>,
pub scrollback_limit: usize,
pub scrollback_limit_input: String,
pub pending_dialog: Option<UiDialog>,
pub exit_confirmed: bool,
}Fields§
§project_dir: PathBuf§project_name: String§app_id: String§project_status: String§targets: Vec<Target>§devices: Vec<UiDevice>§route: UiRoute§theme_mode: UiThemeMode§compact_mode: bool§selected_target: Option<Target>§selected_device: Option<String>§init_name: String§init_app_id: String§init_local_path: String§host: String§port: String§strict: bool§release: bool§detach: bool§no_open: bool§headless: bool§command_runtime: CommandRuntime§command_sessions: Vec<CommandSnapshot>§active_command_session_id: Option<u64>§last_active_log_line_count: usize§refreshed_finished_sessions: Vec<u64>§scrollback_limit: usize§scrollback_limit_input: String§pending_dialog: Option<UiDialog>§exit_confirmed: boolImplementations§
Source§impl UiState
impl UiState
pub fn load(project_dir: PathBuf) -> Self
pub fn refresh(&mut self)
pub fn selected_target_label(&self) -> String
pub fn selected_device_label(&self) -> String
pub fn target_devices(&self) -> Vec<&UiDevice>
pub fn poll_command_status( &mut self, runtime: &mut RuntimeState, env: &Env, ) -> bool
pub fn sync_command_sessions(&mut self)
pub fn active_command_session(&self) -> Option<&CommandSnapshot>
pub fn select_command_session(&mut self, session_id: u64)
pub fn request_command_confirmation(&mut self, command: UiCommand)
pub fn request_exit_confirmation(&mut self)
pub fn set_scrollback_limit(&mut self, limit: usize)
Trait Implementations§
impl GlobalState for UiState
impl StructuralPartialEq for UiState
Auto Trait Implementations§
impl Freeze for UiState
impl RefUnwindSafe for UiState
impl Send for UiState
impl Sync for UiState
impl Unpin for UiState
impl UnsafeUnpin for UiState
impl UnwindSafe for UiState
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
impl<T> Brush for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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 moreCreates a shared type from an unshared type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().