pub trait OpenSnapshotMptTrait<'db> {
type SnapshotDbBorrowSharedType: 'db + SnapshotMptTraitRead;
type SnapshotDbBorrowMutType: 'db + SnapshotMptTraitRw;
type SnapshotDbAsOwnedType: 'db + SnapshotMptTraitRw;
// Required methods
fn open_snapshot_mpt_owned(
&'db mut self,
) -> StorageResult<Self::SnapshotDbBorrowMutType>;
fn open_snapshot_mpt_as_owned(
&'db self,
) -> StorageResult<Self::SnapshotDbAsOwnedType>;
fn open_snapshot_mpt_shared(
&'db self,
) -> StorageResult<Self::SnapshotDbBorrowSharedType>;
}Required Associated Types§
type SnapshotDbBorrowMutType: 'db + SnapshotMptTraitRw
type SnapshotDbAsOwnedType: 'db + SnapshotMptTraitRw
Required Methods§
fn open_snapshot_mpt_owned( &'db mut self, ) -> StorageResult<Self::SnapshotDbBorrowMutType>
fn open_snapshot_mpt_as_owned( &'db self, ) -> StorageResult<Self::SnapshotDbAsOwnedType>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".