pub struct DaemonRuntime { /* private fields */ }Implementations§
Source§impl DaemonRuntime
impl DaemonRuntime
Sourcepub fn new(baseline: ConfigBaseline) -> Self
pub fn new(baseline: ConfigBaseline) -> Self
Build with the file baseline; the effective config starts equal to the
baseline (no dynamic override) until reload runs. serve
builds this (via config_baseline) so it can wake it on SIGHUP/changelog.
Sourcepub fn notify_reload(&self)
pub fn notify_reload(&self)
Wake an immediate re-resolve from the store. Called by the SIGHUP handler,
the shared-store changelog poller (when a daemon/* key changed), and after
a local write — so convergence is push-driven, not poll-driven.
Sourcepub fn effective(&self) -> Arc<EffectiveConfig> ⓘ
pub fn effective(&self) -> Arc<EffectiveConfig> ⓘ
The current effective operational config.
Sourcepub fn generation(&self) -> Option<String>
pub fn generation(&self) -> Option<String>
The active generation hash (the daemon/current content address), or
None when running on the pure file baseline.
Sourcepub fn baseline(&self) -> &ConfigBaseline
pub fn baseline(&self) -> &ConfigBaseline
The file baseline (+ static ceilings) a write is validated against.
Sourcepub async fn reload(&self, deploy: &DeployStore) -> Result<(), DeployError>
pub async fn reload(&self, deploy: &DeployStore) -> Result<(), DeployError>
Re-resolve baseline ⊕ stored dynamic config and hot-swap the live values.
Called after a write and on SIGHUP.
Auto Trait Implementations§
impl !Freeze for DaemonRuntime
impl RefUnwindSafe for DaemonRuntime
impl Send for DaemonRuntime
impl Sync for DaemonRuntime
impl Unpin for DaemonRuntime
impl UnsafeUnpin for DaemonRuntime
impl UnwindSafe for DaemonRuntime
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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 more