pub trait OnCommit {
type Committed;
// Required method
fn on_commit(self, token: &CommitToken) -> Self::Committed;
}Expand description
A trait that must be implemented to be able to convert databases from local ones to static ones.
Required Associated Types§
Required Methods§
Sourcefn on_commit(self, token: &CommitToken) -> Self::Committed
fn on_commit(self, token: &CommitToken) -> Self::Committed
Convert a struct after the commit is successful.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".