Skip to main content

ContextCheckpointMigrationV1

Trait ContextCheckpointMigrationV1 

Source
pub trait ContextCheckpointMigrationV1 {
    type Error;

    // Required method
    fn migrate(&self, bytes: &[u8]) -> Result<ContextCheckpointV1, Self::Error>;
}
Expand description

Seam for the downstream migration slice.

Required Associated Types§

Source

type Error

Error surfaced by the migration slice.

Required Methods§

Source

fn migrate(&self, bytes: &[u8]) -> Result<ContextCheckpointV1, Self::Error>

Migrate encoded checkpoint bytes of an older schema to this domain.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§