pub trait UpdateHandler {
// Provided methods
fn update(&mut self, update: Update) -> UpdateResult { ... }
fn try_replace(
&mut self,
_data: ReplaceUpdateData,
_source_id: TransceiverId,
) -> Result<ValueContainer, UpdateError> { ... }
fn try_set_entry(
&mut self,
_data: SetEntryUpdateData,
_source_id: TransceiverId,
) -> Result<(), UpdateError> { ... }
fn try_delete_entry(
&mut self,
_data: DeleteEntryUpdateData,
_source_id: TransceiverId,
) -> Result<ValueContainer, UpdateError> { ... }
fn try_append_entry(
&mut self,
_data: AppendEntryUpdateData,
_source_id: TransceiverId,
) -> Result<(), UpdateError> { ... }
fn try_clear(
&mut self,
_source_id: TransceiverId,
) -> Result<(), UpdateError> { ... }
fn try_list_splice(
&mut self,
_data: ListSpliceUpdateData,
_source_id: TransceiverId,
) -> Result<Vec<ValueContainer>, UpdateError> { ... }
}Provided Methods§
fn update(&mut self, update: Update) -> UpdateResult
fn try_replace( &mut self, _data: ReplaceUpdateData, _source_id: TransceiverId, ) -> Result<ValueContainer, UpdateError>
fn try_set_entry( &mut self, _data: SetEntryUpdateData, _source_id: TransceiverId, ) -> Result<(), UpdateError>
fn try_delete_entry( &mut self, _data: DeleteEntryUpdateData, _source_id: TransceiverId, ) -> Result<ValueContainer, UpdateError>
fn try_append_entry( &mut self, _data: AppendEntryUpdateData, _source_id: TransceiverId, ) -> Result<(), UpdateError>
fn try_clear(&mut self, _source_id: TransceiverId) -> Result<(), UpdateError>
fn try_list_splice( &mut self, _data: ListSpliceUpdateData, _source_id: TransceiverId, ) -> Result<Vec<ValueContainer>, UpdateError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".