pub trait UpdateHandlerImpl: UpdateCallbackDataAccess {
// Provided methods
fn try_update(
&mut self,
operation: UpdateOperation,
source_id: Option<TransceiverId>,
cache: &RefCell<SharedReferencesCache>,
) -> UpdateResult { ... }
fn try_set_entry(
&mut self,
_data: SetEntryUpdateData,
_cache: &RefCell<SharedReferencesCache>,
) -> Result<Option<ValueContainer>, UpdateError> { ... }
fn try_delete_entry(
&mut self,
_data: DeleteEntryUpdateData,
_cache: &RefCell<SharedReferencesCache>,
) -> Result<ValueContainer, UpdateError> { ... }
fn try_append_entry(
&mut self,
_data: AppendEntryUpdateData,
_cache: &RefCell<SharedReferencesCache>,
) -> Result<(), UpdateError> { ... }
fn try_clear(
&mut self,
_cache: &RefCell<SharedReferencesCache>,
) -> Result<ValueContainer, UpdateError> { ... }
fn try_list_splice(
&mut self,
_data: ListSpliceUpdateData,
_cache: &RefCell<SharedReferencesCache>,
) -> Result<Vec<ValueContainer>, UpdateError> { ... }
fn try_increment(
&mut self,
_data: IncrementUpdateData,
_cache: &RefCell<SharedReferencesCache>,
) -> Result<(), UpdateError> { ... }
fn try_decrement(
&mut self,
_data: DecrementUpdateData,
_cache: &RefCell<SharedReferencesCache>,
) -> Result<(), UpdateError> { ... }
fn try_replace(
&mut self,
_data: ReplaceUpdateData,
_cache: &RefCell<SharedReferencesCache>,
) -> Result<(), UpdateError> { ... }
}Provided Methods§
Sourcefn try_update(
&mut self,
operation: UpdateOperation,
source_id: Option<TransceiverId>,
cache: &RefCell<SharedReferencesCache>,
) -> UpdateResult
fn try_update( &mut self, operation: UpdateOperation, source_id: Option<TransceiverId>, cache: &RefCell<SharedReferencesCache>, ) -> UpdateResult
Handles an update operation on the implementing type and returns an UpdateResult. The replacement operation must be handled at a higher level, as it is not specific to the implementing type - there are special cases, such as Option / Box. If the optional source_id is provided, it should be used to notify observers of the internal update.
fn try_set_entry( &mut self, _data: SetEntryUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<Option<ValueContainer>, UpdateError>
fn try_delete_entry( &mut self, _data: DeleteEntryUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<ValueContainer, UpdateError>
fn try_append_entry( &mut self, _data: AppendEntryUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>
fn try_clear( &mut self, _cache: &RefCell<SharedReferencesCache>, ) -> Result<ValueContainer, UpdateError>
fn try_list_splice( &mut self, _data: ListSpliceUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<Vec<ValueContainer>, UpdateError>
fn try_increment( &mut self, _data: IncrementUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>
fn try_decrement( &mut self, _data: DecrementUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>
fn try_replace( &mut self, _data: ReplaceUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".