pub enum SessionExitStatus {
Running,
Completed,
Failed(String),
}Expand description
Liveness state of a DuplexSession’s background task.
Surfaced through DuplexSession::is_alive,
DuplexSession::exit_status, and
DuplexSession::wait_for_exit for service-shaped hosts that
want non-consuming visibility into whether a session is still
usable. The closing DuplexSession::close still returns the
full Result for the one caller that consumes the session.
Failed carries a String rather than the full
Error because the underlying watch channel requires Clone
and Error is not Clone (its Io variant wraps a non-Clone
std::io::Error). The full error remains available via
DuplexSession::close.
Variants§
Running
The session task is still running.
Completed
The child was reaped with a zero exit status and no I/O error.
Failed(String)
The session task ended with an error. Carries the error’s
Display rendering.