pub trait ReloadSource {
// Required method
fn recv(&mut self) -> Option<()>;
}Expand description
A source of reload triggers. recv blocks until the next trigger fires, or returns None
when the source is exhausted / shut down (the loop then ends). Implementors carry no
config: a trigger only ever means “re-read the manifest now”.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ReloadSource for SignalReloadSource
Available on Unix only.