linera_client::persistent

Trait LocalPersistExt

Source
pub trait LocalPersistExt: LocalPersist {
    // Required method
    async fn mutate<R>(
        &mut self,
        mutation: impl FnOnce(&mut Self::Target) -> R,
    ) -> Result<R, Self::Error>;
}

Required Methods§

Source

async fn mutate<R>( &mut self, mutation: impl FnOnce(&mut Self::Target) -> R, ) -> Result<R, Self::Error>

Applies a mutation to the value, persisting when done.

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.

Implementors§