#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SessionState {
Dialing,
TransportConnected,
SshHandshaking,
Authenticated,
ShellReady,
AuthRejected,
TrustMismatch,
Closed,
}
impl SessionState {
pub fn is_terminal(self) -> bool {
matches!(
self,
SessionState::AuthRejected | SessionState::TrustMismatch | SessionState::Closed
)
}
}