Struct below_view::ViewState[][src]

pub struct ViewState {
    pub time_elapsed: Duration,
    pub lowest_time_elapsed: Duration,
    pub timestamp: SystemTime,
    pub system: Rc<RefCell<SystemModel>>,
    pub cgroup: Rc<RefCell<CgroupModel>>,
    pub process: Rc<RefCell<ProcessModel>>,
    pub network: Rc<RefCell<NetworkModel>>,
    pub main_view_state: MainViewState,
    pub mode: ViewMode,
    pub event_controllers: Rc<RefCell<HashMap<Event, Controllers>>>,
    pub cmd_controllers: Rc<RefCell<HashMap<&'static str, Controllers>>>,
}

Fields

time_elapsed: Durationlowest_time_elapsed: Duration

Keep track of the lowest seen time_elapsed so that view can highlight abnormal elapsed times. Below will never go faster than the requested interval rate but can certainly go higher (b/c of a loaded system or other delays).

timestamp: SystemTimesystem: Rc<RefCell<SystemModel>>cgroup: Rc<RefCell<CgroupModel>>process: Rc<RefCell<ProcessModel>>network: Rc<RefCell<NetworkModel>>main_view_state: MainViewStatemode: ViewModeevent_controllers: Rc<RefCell<HashMap<Event, Controllers>>>cmd_controllers: Rc<RefCell<HashMap<&'static str, Controllers>>>

Implementations

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 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.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.