Skip to content

Commit 192faa2

Browse files
committed
fix: add non_exhaustive
1 parent efc224c commit 192faa2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

crates/rmcp/src/transport/streamable_http_server/session.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ pub use store::{SessionState, SessionStore, SessionStoreError};
4343
/// // this is a restore replay, not a fresh client connection
4444
/// }
4545
/// ```
46+
#[non_exhaustive]
4647
#[derive(Debug, Clone)]
4748
pub struct SessionRestoreMarker {
4849
pub id: SessionId,
4950
}
5051

5152
/// The outcome of a [`SessionManager::restore_session`] call.
53+
#[non_exhaustive]
5254
#[derive(Debug)]
5355
pub enum RestoreOutcome<T> {
5456
/// The session was just re-created from external state; the caller must

crates/rmcp/src/transport/streamable_http_server/session/store.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::model::InitializeRequestParams;
55
/// When a client reconnects to a different server instance, the new instance
66
/// loads this state to transparently replay the `initialize` handshake without
77
/// the client needing to re-initialize.
8+
#[non_exhaustive]
89
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
910
pub struct SessionState {
1011
/// Parameters from the client's original `initialize` request.

0 commit comments

Comments
 (0)