pub struct StatePersistenceManager { /* private fields */ }
Expand description
State persistence manager
Implementations§
Source§impl StatePersistenceManager
impl StatePersistenceManager
pub fn new() -> Self
pub async fn save_state( &mut self, state: &ServerPersistentState, ) -> Result<(), McpError>
pub async fn load_state(&self) -> Result<ServerPersistentState, McpError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatePersistenceManager
impl RefUnwindSafe for StatePersistenceManager
impl Send for StatePersistenceManager
impl Sync for StatePersistenceManager
impl Unpin for StatePersistenceManager
impl UnwindSafe for StatePersistenceManager
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