Struct clashctl_tui::TuiStates[][src]

pub struct TuiStates<'a> {
Show 15 fields pub should_quit: bool, pub start_time: Instant, pub version: Option<Version>, pub traffics: Vec<Traffic>, pub max_traffic: Traffic, pub all_events_recv: usize, pub page_index: u8, pub show_debug: bool, pub proxy_tree: ProxyTree<'a>, pub rule_freq: HashMap<String, usize>, pub con_size: (u64, u64), pub log_state: MovableListState<'a, Log, Noop>, pub con_state: MovableListState<'a, ConnectionWithSpeed, Noop>, pub rule_state: MovableListState<'a, Rule, RuleSort>, pub debug_state: MovableListState<'a, Event, Noop>,
}

Fields

should_quit: boolstart_time: Instantversion: Option<Version>traffics: Vec<Traffic>max_traffic: Trafficall_events_recv: usizepage_index: u8show_debug: boolproxy_tree: ProxyTree<'a>rule_freq: HashMap<String, usize>con_size: (u64, u64)log_state: MovableListState<'a, Log, Noop>con_state: MovableListState<'a, ConnectionWithSpeed, Noop>rule_state: MovableListState<'a, Rule, RuleSort>debug_state: MovableListState<'a, Event, Noop>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return TuiStates { should_quit: Default::default(), start_time: Instant :: now(), version: Default::default(), traffics: Default::default(), max_traffic: Default::default(), all_events_recv: Default::default(), page_index: Default::default(), show_debug: Default::default(), proxy_tree: Default::default(), rule_freq: Default::default(), con_size: Default::default(), log_state: { let mut ret = MovableListState :: default() ; ret.with_index().dsc_index() ; ret }, con_state: Default::default(), rule_state: Default::default(), debug_state: Default::default() }

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.