[][src]Struct exonum_merkledb::migration::Scratchpad

pub struct Scratchpad<T> { /* fields omitted */ }

Access to temporary data that can be used during migration. The scratchpad is cleared at the end of the migration, regardless of whether the migration is successful.

Like Migrations, Scratchpads are separated via namespaces. Scratchpads are optimized for small amounts of data per index. Indexes in a Scratchpad are not aggregated into the overall database state or the migration state.

Methods

impl<T: RawAccess> Scratchpad<T>[src]

pub fn new(namespace: impl Into<String>, access: T) -> Self[src]

Creates a scratchpad in the specified namespace.

Trait Implementations

impl<T: RawAccess> Access for Scratchpad<T>[src]

type Base = T

Raw access serving as the basis for created indexes.

impl<T: Clone> Clone for Scratchpad<T>[src]

impl<T: Debug> Debug for Scratchpad<T>[src]

impl<T: RawAccess> From<Scratchpad<T>> for GenericAccess<T>[src]

impl<'a, T> IntoErased<'a> for Scratchpad<T> where
    T: Into<GenericRawAccess<'a>>, 
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Scratchpad<T> where
    T: RefUnwindSafe

impl<T> Send for Scratchpad<T> where
    T: Send

impl<T> Sync for Scratchpad<T> where
    T: Sync

impl<T> Unpin for Scratchpad<T> where
    T: Unpin

impl<T> UnwindSafe for Scratchpad<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Access for T where
    T: RawAccess
[src]

type Base = T

Raw access serving as the basis for created indexes.

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,