From c3a75cdb0ec5046dec9311c837035709b622480f Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Tue, 28 Apr 2026 16:42:05 +0700 Subject: [PATCH] feat(client): Add client session state error variants --- crates/irtt-client/src/error.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/irtt-client/src/error.rs b/crates/irtt-client/src/error.rs index c769ec3..483fd62 100644 --- a/crates/irtt-client/src/error.rs +++ b/crates/irtt-client/src/error.rs @@ -31,6 +31,10 @@ pub enum ClientError { NegotiationRejected { reason: String }, #[error("client is not open")] NotOpen, + #[error("client session is already open")] + AlreadyOpen, + #[error("client session is already completed")] + AlreadyCompleted, #[error("client session is already closed")] AlreadyClosed, #[error("operation is not implemented for this milestone")]