INNER CODE UNIT · Rust
success
psmux/psmux · crates/portable-pty-psmux/src/lib.rs:212
pub fn success(&self) -> bool {
match self.signal {
None => self.code == 0,
Some(_) => false,
}
}
/// Returns the exit code that this ExitStatus was constructed with
pub fn exit_code(&self) -> u32 {
self.code
}
/// Returns the signal if present that this ExitStatus was constructed with
pub fn signal(&self) -> Option<&str> {
self.signal.as_deref()
}
}