pub struct ServerPersistentState {
pub active_connections: Vec<String>,
pub registered_tools: Vec<String>,
pub cached_resources: HashMap<String, String>,
pub metrics: ServerMetricsSnapshot,
}
Expand description
Server persistent state for serialization
Fields§
§active_connections: Vec<String>
§registered_tools: Vec<String>
§cached_resources: HashMap<String, String>
§metrics: ServerMetricsSnapshot
Trait Implementations§
Source§impl Clone for ServerPersistentState
impl Clone for ServerPersistentState
Source§fn clone(&self) -> ServerPersistentState
fn clone(&self) -> ServerPersistentState
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 moreSource§impl Debug for ServerPersistentState
impl Debug for ServerPersistentState
Source§impl<'de> Deserialize<'de> for ServerPersistentState
impl<'de> Deserialize<'de> for ServerPersistentState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServerPersistentState
impl RefUnwindSafe for ServerPersistentState
impl Send for ServerPersistentState
impl Sync for ServerPersistentState
impl Unpin for ServerPersistentState
impl UnwindSafe for ServerPersistentState
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