Skip to main content

ChangeTokenSource

Trait ChangeTokenSource 

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

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

Used to fetch a change token to track options changes.

Required Methods§

Source

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

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

Provided Methods§

Source

fn name(&self) -> &str

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

Implementors§