pub struct HttpTransportState {
pub message_sender: Sender<(String, JsonRpcMessage)>,
pub response_sender: Sender<(String, JsonRpcMessage)>,
pub config: HttpTransportConfig,
pub metrics: Option<Arc<MetricsCollector>>,
pub monitoring: Option<Arc<MonitoringSystem>>,
pub session_store: Arc<RwLock<HashMap<String, SessionInfo>>>,
}Expand description
Shared state for HTTP transport
Fields§
§message_sender: Sender<(String, JsonRpcMessage)>§response_sender: Sender<(String, JsonRpcMessage)>§config: HttpTransportConfig§metrics: Option<Arc<MetricsCollector>>§monitoring: Option<Arc<MonitoringSystem>>§session_store: Arc<RwLock<HashMap<String, SessionInfo>>>Trait Implementations§
Source§impl Clone for HttpTransportState
impl Clone for HttpTransportState
Source§fn clone(&self) -> HttpTransportState
fn clone(&self) -> HttpTransportState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for HttpTransportState
impl !UnwindSafe for HttpTransportState
impl Freeze for HttpTransportState
impl Send for HttpTransportState
impl Sync for HttpTransportState
impl Unpin for HttpTransportState
impl UnsafeUnpin for HttpTransportState
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