pub struct State {Show 18 fields
pub table: TableState<Instance>,
pub state_filter: StateFilter,
pub sort_column: Column,
pub sort_direction: SortDirection,
pub input_focus: InputFocus,
pub current_instance: Option<String>,
pub detail_tab: DetailTab,
pub tags: TableState<InstanceTag>,
pub tag_visible_column_ids: Vec<String>,
pub tag_column_ids: Vec<String>,
pub monitoring_scroll: usize,
pub metrics_loading: bool,
pub metric_data_cpu: Vec<(i64, f64)>,
pub metric_data_network_in: Vec<(i64, f64)>,
pub metric_data_network_out: Vec<(i64, f64)>,
pub metric_data_network_packets_in: Vec<(i64, f64)>,
pub metric_data_network_packets_out: Vec<(i64, f64)>,
pub metric_data_metadata_no_token: Vec<(i64, f64)>,
}Fields§
§table: TableState<Instance>§state_filter: StateFilter§sort_column: Column§sort_direction: SortDirection§input_focus: InputFocus§current_instance: Option<String>§detail_tab: DetailTab§tag_visible_column_ids: Vec<String>§tag_column_ids: Vec<String>§monitoring_scroll: usize§metrics_loading: bool§metric_data_cpu: Vec<(i64, f64)>§metric_data_network_in: Vec<(i64, f64)>§metric_data_network_out: Vec<(i64, f64)>§metric_data_network_packets_in: Vec<(i64, f64)>§metric_data_network_packets_out: Vec<(i64, f64)>§metric_data_metadata_no_token: Vec<(i64, f64)>Trait Implementations§
Source§impl MonitoringState for State
impl MonitoringState for State
fn is_metrics_loading(&self) -> bool
fn set_metrics_loading(&mut self, loading: bool)
fn monitoring_scroll(&self) -> usize
fn set_monitoring_scroll(&mut self, scroll: usize)
fn clear_metrics(&mut self)
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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 moreCreates a shared type from an unshared type.