Trait iota_types::storage::WriteStore

source ·
pub trait WriteStore: ReadStore {
    // Required methods
    fn insert_checkpoint(&self, checkpoint: &VerifiedCheckpoint) -> Result<()>;
    fn update_highest_synced_checkpoint(
        &self,
        checkpoint: &VerifiedCheckpoint,
    ) -> Result<()>;
    fn update_highest_verified_checkpoint(
        &self,
        checkpoint: &VerifiedCheckpoint,
    ) -> Result<()>;
    fn insert_checkpoint_contents(
        &self,
        checkpoint: &VerifiedCheckpoint,
        contents: VerifiedCheckpointContents,
    ) -> Result<()>;
    fn insert_committee(&self, new_committee: Committee) -> Result<()>;
}

Required Methods§

Implementations on Foreign Types§

source§

impl<T: WriteStore + ?Sized> WriteStore for &T

source§

impl<T: WriteStore + ?Sized> WriteStore for Box<T>

source§

impl<T: WriteStore + ?Sized> WriteStore for Arc<T>

Implementors§