pub struct UiState {
pub current_sparkline_scale: SparklineScale,
pub color_support: ColorSupport,
pub columns: Vec<Column>,
pub current_column_index: usize,
pub sixel_renderer: SixelRenderer,
pub show_help: bool,
pub visualization_mode: VisualizationMode,
pub show_hostnames: bool,
pub show_column_selector: bool,
pub column_selector_state: ColumnSelectorState,
}Fields§
§current_sparkline_scale: SparklineScale§color_support: ColorSupport§columns: Vec<Column>§current_column_index: usize§sixel_renderer: SixelRenderer§show_help: bool§visualization_mode: VisualizationMode§show_hostnames: bool§show_column_selector: bool§column_selector_state: ColumnSelectorStateImplementations§
Source§impl UiState
impl UiState
pub fn new( scale: SparklineScale, columns: Vec<Column>, enable_sixel: bool, ) -> Self
pub fn toggle_help(&mut self)
pub fn toggle_column_selector(&mut self)
pub fn toggle_selected_column_immediate(&mut self)
pub fn move_selected_column_up_immediate(&mut self)
pub fn move_selected_column_down_immediate(&mut self)
pub fn toggle_visualization_mode(&mut self)
pub fn toggle_hostnames(&mut self)
pub fn toggle_sparkline_scale(&mut self)
pub fn cycle_color_mode(&mut self)
pub fn toggle_column(&mut self)
pub fn add_column(&mut self, column: Column)
pub fn remove_column(&mut self, column: Column)
pub fn get_header(&self) -> String
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more