Trait RootView

Source
pub trait RootView: View + Send {
    // Required method
    fn save(&mut self) -> impl Future<Output = Result<(), ViewError>> + Send;
}
Expand description

A View whose staged modifications can be saved in storage.

Required Methods§

Source

fn save(&mut self) -> impl Future<Output = Result<(), ViewError>> + Send

Saves the root view to the database context

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<C> RootView for ChainStateView<C>
where C: Clone + Context + Send + Sync + 'static, ChainStateView<C>: View,

Source§

async fn save(&mut self) -> Result<(), ViewError>

Implementors§