[][src]Struct hycon_rust::database::state_db::StateDB

pub struct StateDB<DatabaseType = RocksDB, EntryType = (Vec<u8>, DBState)> { /* fields omitted */ }

Methods

impl<DatabaseType, EntryType, OptionType> StateDB<DatabaseType, EntryType> where
    DatabaseType: IDB<OptionType = OptionType>, 
[src]

pub fn new(
    path: PathBuf,
    options: Option<OptionType>
) -> Result<StateDB<DatabaseType, EntryType>, Box<dyn Error>>
[src]

Trait Implementations

impl<DBType> Database for StateDB<DBType> where
    DBType: IDB
[src]

type NodeType = DBState

type EntryType = (Vec<u8>, Self::NodeType)

Auto Trait Implementations

impl<DatabaseType, EntryType> Send for StateDB<DatabaseType, EntryType> where
    DatabaseType: Send,
    EntryType: Send

impl<DatabaseType, EntryType> Sync for StateDB<DatabaseType, EntryType> where
    DatabaseType: Sync,
    EntryType: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self