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