Trait ReloadApply
pub trait ReloadApply: Send + Sync {
// Required method
fn apply(&self);
}Expand description
Infallible publication, run once, only after every listener prepared successfully: what a
listener’s prepare hands back. A later server table refusal leaves the old engine
generation in place, but cannot undo this callback’s own effects. One per listener per reload, never per tick;
<dyn ReloadApply>::new(move || ...) makes one from a closure.
Required Methods§
fn apply(&self)
fn apply(&self)
Publish the prepared state.
Implementations§
§impl dyn ReloadApply
impl dyn ReloadApply
pub fn new(apply: impl FnOnce() + Send + 'static) -> Box<dyn ReloadApply>
pub fn new(apply: impl FnOnce() + Send + 'static) -> Box<dyn ReloadApply>
Capture newly parsed state without publishing it yet.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".