pub struct BackgroundProcessSummary { /* private fields */ }Expand description
Compact row for a retained background process.
Implementations§
Source§impl BackgroundProcessSummary
impl BackgroundProcessSummary
Sourcepub fn new(
id: BackgroundProcessId,
command: impl Into<String>,
cwd: Option<String>,
state: BackgroundProcessState,
) -> Self
pub fn new( id: BackgroundProcessId, command: impl Into<String>, cwd: Option<String>, state: BackgroundProcessState, ) -> Self
Creates one list row.
Sourcepub fn with_display_name(self, display_name: Option<String>) -> Self
pub fn with_display_name(self, display_name: Option<String>) -> Self
Attaches an optional short human-readable display name.
Sourcepub fn id(&self) -> &BackgroundProcessId
pub fn id(&self) -> &BackgroundProcessId
Returns the process id.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Returns the optional human-readable display name.
Sourcepub fn display_label(&self) -> &str
pub fn display_label(&self) -> &str
Returns the preferred human-facing label (display_name when present,
otherwise the process id).
Sourcepub fn state(&self) -> &BackgroundProcessState
pub fn state(&self) -> &BackgroundProcessState
Returns the current lifecycle state.
Trait Implementations§
Source§impl Clone for BackgroundProcessSummary
impl Clone for BackgroundProcessSummary
Source§impl Debug for BackgroundProcessSummary
impl Debug for BackgroundProcessSummary
impl Eq for BackgroundProcessSummary
Source§impl PartialEq for BackgroundProcessSummary
impl PartialEq for BackgroundProcessSummary
impl StructuralPartialEq for BackgroundProcessSummary
Auto Trait Implementations§
impl Forget for BackgroundProcessSummary
impl Freeze for BackgroundProcessSummary
impl Move for BackgroundProcessSummary
impl RefUnwindSafe for BackgroundProcessSummary
impl Send for BackgroundProcessSummarywhere
RawVecInner: Send,
impl Sync for BackgroundProcessSummarywhere
RawVecInner: Sync,
impl Unpin for BackgroundProcessSummary
impl UnsafeUnpin for BackgroundProcessSummary
impl UnwindSafe for BackgroundProcessSummarywhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.