pub struct ProcView {
pub id: TaskId,
pub cfg: ProcConfig,
pub is_up: bool,
pub exit_code: Option<u32>,
pub vt: SharedVt,
pub copy_mode: CopyMode,
pub target_state: TargetState,
pub last_start: Option<Instant>,
pub changed: bool,
}Fields§
§id: TaskId§cfg: ProcConfig§is_up: bool§exit_code: Option<u32>§vt: SharedVt§copy_mode: CopyMode§target_state: TargetState§last_start: Option<Instant>§changed: boolImplementations§
Source§impl ProcView
impl ProcView
pub fn new(id: TaskId, cfg: ProcConfig, vt: SharedVt) -> Self
pub fn rename(&mut self, name: &str)
pub fn id(&self) -> TaskId
pub fn exit_code(&self) -> Option<u32>
pub fn lock_view(&self) -> ProcViewFrame<'_>
pub fn name(&self) -> &str
pub fn is_up(&self) -> bool
pub fn copy_mode(&self) -> &CopyMode
pub fn focus(&mut self)
Auto Trait Implementations§
impl Freeze for ProcView
impl RefUnwindSafe for ProcView
impl Send for ProcView
impl Sync for ProcView
impl Unpin for ProcView
impl UnsafeUnpin for ProcView
impl UnwindSafe for ProcView
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