Skip to main content

Trackable

Trait Trackable 

Source
pub trait Trackable<C, S>{
    // Required method
    fn track<'notifier, I: Identifier>(
        &mut self,
        sender: &'notifier Sender<ModificationEvent<I>>,
        identifier: I,
    ) -> Tracker<'_, 'notifier, C, S, I>;
}
Expand description

A trait with functions for tracking struct value modifications.

Do not implement this trait manually but use the track attribute for less boiler plate code.

Required Methods§

Source

fn track<'notifier, I: Identifier>( &mut self, sender: &'notifier Sender<ModificationEvent<I>>, identifier: I, ) -> Tracker<'_, 'notifier, C, S, I>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§