pub trait UpdateHandler {
// Required method
fn try_handle_update(
&mut self,
update: Update,
cache: &RefCell<SharedReferencesCache>,
) -> UpdateResult;
// Provided methods
fn try_set_entry(
&mut self,
path: Vec<ValueContainer>,
source_id: TransceiverId,
data: SetEntryUpdateData,
cache: &RefCell<SharedReferencesCache>,
) -> Result<Option<ValueContainer>, UpdateError> { ... }
fn try_delete_entry(
&mut self,
path: Vec<ValueContainer>,
source_id: TransceiverId,
data: DeleteEntryUpdateData,
cache: &RefCell<SharedReferencesCache>,
) -> Result<Option<ValueContainer>, UpdateError> { ... }
fn try_append_entry(
&mut self,
path: Vec<ValueContainer>,
source_id: TransceiverId,
data: AppendEntryUpdateData,
cache: &RefCell<SharedReferencesCache>,
) -> Result<(), UpdateError> { ... }
fn try_clear(
&mut self,
path: Vec<ValueContainer>,
source_id: TransceiverId,
cache: &RefCell<SharedReferencesCache>,
) -> Result<ValueContainer, UpdateError> { ... }
fn try_list_splice(
&mut self,
path: Vec<ValueContainer>,
source_id: TransceiverId,
data: ListSpliceUpdateData,
cache: &RefCell<SharedReferencesCache>,
) -> Result<Vec<ValueContainer>, UpdateError> { ... }
fn try_increment(
&mut self,
path: Vec<ValueContainer>,
source_id: TransceiverId,
data: IncrementUpdateData,
cache: &RefCell<SharedReferencesCache>,
) -> Result<(), UpdateError> { ... }
fn try_decrement(
&mut self,
path: Vec<ValueContainer>,
source_id: TransceiverId,
data: DecrementUpdateData,
cache: &RefCell<SharedReferencesCache>,
) -> Result<(), UpdateError> { ... }
fn try_replace(
&mut self,
path: Vec<ValueContainer>,
source_id: TransceiverId,
data: ReplaceUpdateData,
cache: &RefCell<SharedReferencesCache>,
) -> Result<(), UpdateError> { ... }
}Required Methods§
fn try_handle_update( &mut self, update: Update, cache: &RefCell<SharedReferencesCache>, ) -> UpdateResult
Provided Methods§
fn try_set_entry( &mut self, path: Vec<ValueContainer>, source_id: TransceiverId, data: SetEntryUpdateData, cache: &RefCell<SharedReferencesCache>, ) -> Result<Option<ValueContainer>, UpdateError>
fn try_delete_entry( &mut self, path: Vec<ValueContainer>, source_id: TransceiverId, data: DeleteEntryUpdateData, cache: &RefCell<SharedReferencesCache>, ) -> Result<Option<ValueContainer>, UpdateError>
fn try_append_entry( &mut self, path: Vec<ValueContainer>, source_id: TransceiverId, data: AppendEntryUpdateData, cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>
fn try_clear( &mut self, path: Vec<ValueContainer>, source_id: TransceiverId, cache: &RefCell<SharedReferencesCache>, ) -> Result<ValueContainer, UpdateError>
fn try_list_splice( &mut self, path: Vec<ValueContainer>, source_id: TransceiverId, data: ListSpliceUpdateData, cache: &RefCell<SharedReferencesCache>, ) -> Result<Vec<ValueContainer>, UpdateError>
fn try_increment( &mut self, path: Vec<ValueContainer>, source_id: TransceiverId, data: IncrementUpdateData, cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>
fn try_decrement( &mut self, path: Vec<ValueContainer>, source_id: TransceiverId, data: DecrementUpdateData, cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>
fn try_replace( &mut self, path: Vec<ValueContainer>, source_id: TransceiverId, 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".