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§
Sourcefn token(&self) -> Box<dyn ChangeToken>
fn token(&self) -> Box<dyn ChangeToken>
Creates and returns a ChangeToken
which can be
used to register a change notification callback.