pub struct ConfigurationManager { /* private fields */ }
Expand description
Configuration manager for hot reload
Implementations§
Source§impl ConfigurationManager
impl ConfigurationManager
pub fn new() -> Self
pub async fn load_config( &mut self, config: ServerConfig, ) -> Result<(), McpError>
pub fn get_config(&self) -> &ServerConfig
pub async fn hot_reload( &mut self, new_config: ServerConfig, ) -> Result<(), McpError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigurationManager
impl RefUnwindSafe for ConfigurationManager
impl Send for ConfigurationManager
impl Sync for ConfigurationManager
impl Unpin for ConfigurationManager
impl UnwindSafe for ConfigurationManager
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