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 session task completed normally (close, stdout EOF without error).
Failed(String)
The session task ended with an error. Carries the error’s
Display rendering.
Trait Implementations§
Source§impl Clone for SessionExitStatus
impl Clone for SessionExitStatus
Source§fn clone(&self) -> SessionExitStatus
fn clone(&self) -> SessionExitStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more