pub type UpdateNotifierFn = Box<dyn for<'a> FnMut(EntryUpdate<'a>) -> UpdateNotifierRetention + Sync + Send>;
Expand description
A function that will be called when the contents of a dictionary changes. Note that this function will be called while the internal dictionary structure is locked, so it must not interact with the dictionary on which it is registered. It shouldn’t even hold a strong reference to the dictionary it’s registered on, as that’ll create a cycle and make LSAN sad.
Aliased Type§
pub struct UpdateNotifierFn(/* private fields */);