pub struct SessionContext {
pub session_id: String,
pub metadata: HashMap<String, Value>,
pub broadcaster: Option<Arc<dyn Any + Send + Sync>>,
pub timestamp: u64,
}
Expand description
Minimal session context for JSON-RPC handlers This provides basic session information without circular dependencies
Fields§
§session_id: String
Unique session identifier
metadata: HashMap<String, Value>
Session metadata
broadcaster: Option<Arc<dyn Any + Send + Sync>>
Optional broadcaster for session notifications
timestamp: u64
Session timestamp (Unix milliseconds)
Trait Implementations§
Source§impl Clone for SessionContext
impl Clone for SessionContext
Source§fn clone(&self) -> SessionContext
fn clone(&self) -> SessionContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SessionContext
impl !RefUnwindSafe for SessionContext
impl Send for SessionContext
impl Sync for SessionContext
impl Unpin for SessionContext
impl !UnwindSafe for SessionContext
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