pub struct App {
pub processes: Vec<ProcessInfo>,
pub selected: usize,
pub buffers: HashMap<String, OutputBuffer>,
pub stream_mode: StreamMode,
pub paused: bool,
pub scroll_offsets: HashMap<String, usize>,
pub running: bool,
pub stop_all_on_quit: bool,
}Fields§
§processes: Vec<ProcessInfo>§selected: usize§buffers: HashMap<String, OutputBuffer>§stream_mode: StreamMode§paused: bool§scroll_offsets: HashMap<String, usize>§running: bool§stop_all_on_quit: boolImplementations§
Source§impl App
impl App
pub fn new() -> Self
pub fn update_processes(&mut self, processes: Vec<ProcessInfo>)
pub fn selected_name(&self) -> Option<&str>
pub fn select_next(&mut self)
pub fn select_prev(&mut self)
pub fn cycle_stream_mode(&mut self)
pub fn toggle_pause(&mut self)
pub fn push_output(&mut self, process: &str, stream: Stream, line: &str)
pub fn quit(&mut self)
pub fn quit_and_stop(&mut self)
pub fn running_count(&self) -> usize
pub fn exited_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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> 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