pub struct SseStream { /* private fields */ }
Expand description
SSE stream wrapper that formats events properly (MCP compliant - one connection per stream)
Implementations§
Source§impl SseStream
impl SseStream
Sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
Get the session ID this stream belongs to
Sourcepub fn connection_id(&self) -> &str
pub fn connection_id(&self) -> &str
Get the connection ID for this stream
Sourcepub fn stream_identifier(&self) -> String
pub fn stream_identifier(&self) -> String
Get stream identifier for logging (session + connection)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SseStream
impl !RefUnwindSafe for SseStream
impl Send for SseStream
impl !Sync for SseStream
impl Unpin for SseStream
impl !UnwindSafe for SseStream
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