Skip to main content

ReloadCallback

Trait ReloadCallback 

Source
pub trait ReloadCallback {
    // Required method
    fn invoke(&self);
}
Available on crate feature reloading only.
Expand description

Trait for invoking reload callbacks.

This trait allows both () (no callback) and Fn() types to be used as the callback type in ReloadingConfig.

Required Methods§

Source

fn invoke(&self)

Invokes the callback, if any.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ReloadCallback for ()

Source§

fn invoke(&self)

Implementors§

Source§

impl<F: Fn()> ReloadCallback for F