Trait OptionsChangeTokenSource

Source
pub trait OptionsChangeTokenSource<T: Value> {
    // Required method
    fn token(&self) -> Box<dyn ChangeToken>;

    // Provided method
    fn name(&self) -> Option<&str> { ... }
}
Expand description

Used to fetch ChangeToken used for tracking options changes.

Required Methods§

Source

fn token(&self) -> Box<dyn ChangeToken>

Creates and returns a ChangeToken which can be used to register a change notification callback.

Provided Methods§

Source

fn name(&self) -> Option<&str>

Gets the name of the option instance being changed, if any.

Implementors§