pub struct CallbackHandler<F>{ /* private fields */ }Expand description
Callback-based event handler adapter.
Implementations§
Source§impl<F> CallbackHandler<F>
impl<F> CallbackHandler<F>
Trait Implementations§
Source§impl<F> ConfigEventHandler for CallbackHandler<F>
impl<F> ConfigEventHandler for CallbackHandler<F>
Source§fn on_config_change(&self, event: ConfigEvent)
fn on_config_change(&self, event: ConfigEvent)
Called when a configuration event occurs.
Source§fn before_reload(&self, _source: &ConfigSource) -> bool
fn before_reload(&self, _source: &ConfigSource) -> bool
Called before configuration reload.
Return false to cancel the reload.
Source§fn after_reload(&self, _source: &ConfigSource)
fn after_reload(&self, _source: &ConfigSource)
Called after successful configuration reload.
Auto Trait Implementations§
impl<F> Freeze for CallbackHandler<F>where
F: Freeze,
impl<F> RefUnwindSafe for CallbackHandler<F>where
F: RefUnwindSafe,
impl<F> Send for CallbackHandler<F>
impl<F> Sync for CallbackHandler<F>
impl<F> Unpin for CallbackHandler<F>where
F: Unpin,
impl<F> UnsafeUnpin for CallbackHandler<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for CallbackHandler<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more