pub struct ServerControl { /* private fields */ }Expand description
Handle retained by the daemon to coordinate graceful SQL shutdown without coupling signal handling to Axum’s router internals.
Implementations§
Source§impl ServerControl
impl ServerControl
Sourcepub fn query_registry(&self) -> Arc<SqlQueryRegistry> ⓘ
pub fn query_registry(&self) -> Arc<SqlQueryRegistry> ⓘ
Shared registry used by every HTTP and native SQL session.
Sourcepub fn storage(&self) -> &ServerStorageRuntime
pub fn storage(&self) -> &ServerStorageRuntime
Authoritative storage runtime.
Sourcepub fn native_runtime(
&self,
db: Arc<Database>,
sessions: Arc<SessionStore>,
) -> NativeRuntime
pub fn native_runtime( &self, db: Arc<Database>, sessions: Arc<SessionStore>, ) -> NativeRuntime
Native adapters share HTTP’s durable SQL idempotency authority.
Cluster mode has no standalone user database; callers must not invoke this without a local engine (native RPC is standalone-only today).
pub async fn shutdown(&self) -> usize
Sourcepub fn cluster_runtime(&self) -> Option<&ClusterRuntimeHandle>
pub fn cluster_runtime(&self) -> Option<&ClusterRuntimeHandle>
Live cluster runtime handle when the daemon started in cluster mode.
Sourcepub fn reload_config(&self) -> Result<ReloadReport, String>
pub fn reload_config(&self) -> Result<ReloadReport, String>
Re-read the environment-driven mutable subset of server configuration
and apply it live (§10.7 configuration reload). Invoked on SIGHUP;
POST /admin/reload runs the same apply path (and also accepts
request-body overrides). Static node configuration (§16.1) is
untouched and stays restart-only.
Trait Implementations§
Source§impl Clone for ServerControl
impl Clone for ServerControl
Source§fn clone(&self) -> ServerControl
fn clone(&self) -> ServerControl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ServerControl
impl !UnwindSafe for ServerControl
impl Freeze for ServerControl
impl Send for ServerControl
impl Sync for ServerControl
impl Unpin for ServerControl
impl UnsafeUnpin for ServerControl
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request