Skip to main content

ReloadSource

Trait ReloadSource 

Source
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§

Source

fn recv(&mut self) -> Option<()>

Block until the next reload trigger; None ends the reload loop.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ReloadSource for SignalReloadSource

Available on Unix only.