pub enum StoreEvent {
Request(RequestEvent),
Session(SessionEvent),
SessionClosed {
session_id: String,
ended_at: i64,
},
SchemaCapture(SchemaCaptureEvent),
SchemaStale {
proxy: String,
upstream_url: String,
method: String,
ts: i64,
},
}Expand description
Top-level event enum sent through the storage channel.
The background writer dispatches on this to decide which table to write to and whether to INSERT, UPDATE, or close a session.
Variants§
Request(RequestEvent)
A completed MCP request — one row in the requests table.
Session(SessionEvent)
A new MCP session from an initialize handshake — one row in sessions.
SessionClosed
A session was cleanly closed (transport disconnect).
Updates ended_at on the existing session row.
SchemaCapture(SchemaCaptureEvent)
A captured schema discovery response, ready for storage.
SchemaStale
Mark a schema method as stale (e.g., notifications/tools/list_changed).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StoreEvent
impl RefUnwindSafe for StoreEvent
impl Send for StoreEvent
impl Sync for StoreEvent
impl Unpin for StoreEvent
impl UnsafeUnpin for StoreEvent
impl UnwindSafe for StoreEvent
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