pub trait InternalMutabilityUpdateHandler: UpdateCallbackDataAccess {
// Required method
fn set_update_callback_data(
&mut self,
observe_data: Option<UpdateCallbackData>,
);
// Provided methods
fn set_child_update_callback_data(
&self,
child_key: impl Into<ValueContainer>,
child_value: &mut Value,
) { ... }
fn set_child_update_callback_data_if_local(
&self,
child_key: &(impl Into<ValueContainer> + Clone),
child_value: &mut ValueContainer,
) { ... }
fn maybe_trigger_update_callback(
&self,
source_id: Option<TransceiverId>,
update_operation_generator: impl FnOnce() -> UpdateOperation,
) { ... }
}Required Methods§
fn set_update_callback_data(&mut self, observe_data: Option<UpdateCallbackData>)
Provided Methods§
Sourcefn set_child_update_callback_data(
&self,
child_key: impl Into<ValueContainer>,
child_value: &mut Value,
)
fn set_child_update_callback_data( &self, child_key: impl Into<ValueContainer>, child_value: &mut Value, )
Updates the update callback data for a child value based on the current update callback data of the parent.
Sourcefn set_child_update_callback_data_if_local(
&self,
child_key: &(impl Into<ValueContainer> + Clone),
child_value: &mut ValueContainer,
)
fn set_child_update_callback_data_if_local( &self, child_key: &(impl Into<ValueContainer> + Clone), child_value: &mut ValueContainer, )
Updates the update callback data for a child value if it is a ValueContainer::Local, based on the current update callback data of the parent.
Sourcefn maybe_trigger_update_callback(
&self,
source_id: Option<TransceiverId>,
update_operation_generator: impl FnOnce() -> UpdateOperation,
)
fn maybe_trigger_update_callback( &self, source_id: Option<TransceiverId>, update_operation_generator: impl FnOnce() -> UpdateOperation, )
Triggers the update callback if the source_id is provided and the callback data is available.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".