CreateDatabaseUpdates

Trait CreateDatabaseUpdates 

Source
pub trait CreateDatabaseUpdates {
    type DatabaseUpdates;

    // Required method
    fn create_database_updates_with_mapper<M: DatabaseKeyMapper>(
        &self,
    ) -> Self::DatabaseUpdates;

    // Provided method
    fn create_database_updates(&self) -> Self::DatabaseUpdates { ... }
}

Required Associated Types§

Required Methods§

Source

fn create_database_updates_with_mapper<M: DatabaseKeyMapper>( &self, ) -> Self::DatabaseUpdates

Uses the given DatabaseKeyMapper to express self using database-level key encoding.

Provided Methods§

Source

fn create_database_updates(&self) -> Self::DatabaseUpdates

Uses the default DatabaseKeyMapper, SpreadPrefixKeyMapper, to express self using database-level key encoding.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CreateDatabaseUpdates for BatchPartitionStateUpdate

Source§

impl CreateDatabaseUpdates for NodeStateUpdates

Source§

impl CreateDatabaseUpdates for PartitionStateUpdates

Source§

impl CreateDatabaseUpdates for StateUpdates

Implementors§