Skip to main content

Reloadable

Trait Reloadable 

Source
pub trait Reloadable: Sized {
    // Required methods
    fn can_reload(&self) -> bool;
    fn reload_token(&self) -> impl ChangeToken + 'static;
}
Expand description

Defines the behavior of a reloadable configuration.

Required Methods§

Source

fn can_reload(&self) -> bool

Gets a value indicating whether the configuration can be reloaded.

Source

fn reload_token(&self) -> impl ChangeToken + 'static

Gets a change token that will be notified when the configuration is reloaded.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Reloadable for Rc<Configuration>

Source§

fn can_reload(&self) -> bool

Source§

fn reload_token(&self) -> impl ChangeToken + 'static

Source§

impl Reloadable for Arc<Configuration>

Source§

fn can_reload(&self) -> bool

Source§

fn reload_token(&self) -> impl ChangeToken + 'static

Implementors§