Skip to main content

OnCommit

Trait OnCommit 

Source
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§

Source

type Committed

The output struct after a commit use successful.

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl OnCommit for ()

Source§

type Committed = ()

Source§

fn on_commit(self, _token: &CommitToken) -> Self::Committed

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit, E: OnCommit, F: OnCommit, G: OnCommit, H: OnCommit, I: OnCommit, J: OnCommit, K: OnCommit, L: OnCommit> OnCommit for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit, E: OnCommit, F: OnCommit, G: OnCommit, H: OnCommit, I: OnCommit, J: OnCommit, K: OnCommit> OnCommit for (A, B, C, D, E, F, G, H, I, J, K)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit, E: OnCommit, F: OnCommit, G: OnCommit, H: OnCommit, I: OnCommit, J: OnCommit> OnCommit for (A, B, C, D, E, F, G, H, I, J)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit, E: OnCommit, F: OnCommit, G: OnCommit, H: OnCommit, I: OnCommit> OnCommit for (A, B, C, D, E, F, G, H, I)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit, E: OnCommit, F: OnCommit, G: OnCommit, H: OnCommit> OnCommit for (A, B, C, D, E, F, G, H)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit, E: OnCommit, F: OnCommit, G: OnCommit> OnCommit for (A, B, C, D, E, F, G)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit, E: OnCommit, F: OnCommit> OnCommit for (A, B, C, D, E, F)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit, E: OnCommit> OnCommit for (A, B, C, D, E)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit, D: OnCommit> OnCommit for (A, B, C, D)

Source§

impl<A: OnCommit, B: OnCommit, C: OnCommit> OnCommit for (A, B, C)

Source§

type Committed = (<A as OnCommit>::Committed, <B as OnCommit>::Committed, <C as OnCommit>::Committed)

Source§

fn on_commit(self, token: &CommitToken) -> Self::Committed

Source§

impl<A: OnCommit, B: OnCommit> OnCommit for (A, B)

Source§

type Committed = (<A as OnCommit>::Committed, <B as OnCommit>::Committed)

Source§

fn on_commit(self, token: &CommitToken) -> Self::Committed

Source§

impl<A: OnCommit> OnCommit for (A,)

Source§

type Committed = (<A as OnCommit>::Committed,)

Source§

fn on_commit(self, token: &CommitToken) -> Self::Committed

Source§

impl<A: OnCommit> OnCommit for Option<A>

Source§

impl<T: OnCommit, E> OnCommit for Result<T, E>

Source§

impl<T: OnCommit, const N: usize> OnCommit for [T; N]

Source§

type Committed = [<T as OnCommit>::Committed; N]

Source§

fn on_commit(self, token: &CommitToken) -> Self::Committed

Implementors§

Source§

impl<'t, KC, DC, C, CDUP> OnCommit for Database<'t, KC, DC, C, CDUP>

Source§

type Committed = Database<'static, KC, DC, C, CDUP>

Source§

impl<'t, KC, DC, C, CDUP> OnCommit for EncryptedDatabase<'t, KC, DC, C, CDUP>

Source§

type Committed = EncryptedDatabase<'static, KC, DC, C, CDUP>