Trait cvar::OnChange
[−]
[src]
pub trait OnChange<T> {
fn change(&self, old: &T, val: T) -> BoxResult<T>;
}Property callback when its value is changed.
Required Methods
fn change(&self, old: &T, val: T) -> BoxResult<T>
Given the old and assigned values produces the new value.
May return a validation error.