pub struct ReloadHandle { /* private fields */ }Expand description
Handle for hot-reloading server configuration without restart.
Obtained via McpServerConfig::on_reload_ready.
All swap operations are lock-free and wait-free – in-flight requests
finish with the old values while new requests see the update immediately.
Implementations§
Source§impl ReloadHandle
impl ReloadHandle
Sourcepub fn reload_auth_keys(&self, keys: Vec<ApiKeyEntry>)
pub fn reload_auth_keys(&self, keys: Vec<ApiKeyEntry>)
Atomically replace the API key list used by the auth middleware.
Sourcepub fn reload_rbac(&self, policy: RbacPolicy)
pub fn reload_rbac(&self, policy: RbacPolicy)
Atomically replace the RBAC policy used by the RBAC middleware.
Auto Trait Implementations§
impl Freeze for ReloadHandle
impl !RefUnwindSafe for ReloadHandle
impl Send for ReloadHandle
impl Sync for ReloadHandle
impl Unpin for ReloadHandle
impl UnsafeUnpin for ReloadHandle
impl !UnwindSafe for ReloadHandle
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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