pub struct Session {
pub sender: Sender<String>,
pub created: Instant,
pub version: McpProtocolVersion,
}
Expand description
Per-session state
Fields§
§sender: Sender<String>
Broadcast sender for SSE notifications
created: Instant
When the session was created (touched on access)
version: McpProtocolVersion
MCP protocol version for this session
Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more