Skip to main content

FieldListener

Trait FieldListener 

Source
pub trait FieldListener<T> {
    // Required methods
    fn on_update(&mut self, value: &T);
    fn get_unique_id(&self) -> &str;
}

Required Methods§

Source

fn on_update(&mut self, value: &T)

Source

fn get_unique_id(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§