#[non_exhaustive]pub enum PaneProcessState {
Unknown,
Running {
pid: Option<u32>,
},
Exited,
}Expand description
Sticky process-state vocabulary for a captured pane.
Marked #[non_exhaustive] because more granular states (such as a
dedicated paused or zombie indicator) may be added without breaking
downstream pattern matches. Externally tagged for serde, so the encoded
form round-trips through both serde_json and bincode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
State has not yet been observed for this pane (mid-recovery snapshots default to this value).
Running
PTY child is still running. pid is set when the daemon could
surface the OS process identifier for the child; for platforms or
configurations where the pid is unavailable the field stays None
rather than an arbitrary sentinel.
Exited
PTY child has exited. Detailed exit information is recorded in
PaneInfo::exit_state.
Trait Implementations§
Source§impl Clone for PaneProcessState
impl Clone for PaneProcessState
Source§fn clone(&self) -> PaneProcessState
fn clone(&self) -> PaneProcessState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaneProcessState
impl Debug for PaneProcessState
Source§impl Default for PaneProcessState
impl Default for PaneProcessState
Source§fn default() -> PaneProcessState
fn default() -> PaneProcessState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaneProcessState
impl<'de> Deserialize<'de> for PaneProcessState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PaneProcessState
Source§impl Hash for PaneProcessState
impl Hash for PaneProcessState
Source§impl PartialEq for PaneProcessState
impl PartialEq for PaneProcessState
Source§fn eq(&self, other: &PaneProcessState) -> bool
fn eq(&self, other: &PaneProcessState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaneProcessState
impl Serialize for PaneProcessState
impl StructuralPartialEq for PaneProcessState
Auto Trait Implementations§
impl Freeze for PaneProcessState
impl RefUnwindSafe for PaneProcessState
impl Send for PaneProcessState
impl Sync for PaneProcessState
impl Unpin for PaneProcessState
impl UnsafeUnpin for PaneProcessState
impl UnwindSafe for PaneProcessState
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