[][src]Struct cosmwasm_storage::StorageTransaction

pub struct StorageTransaction<'a, S: ReadonlyStorage> { /* fields omitted */ }

Implementations

impl<'a, S: ReadonlyStorage> StorageTransaction<'a, S>[src]

pub fn new(storage: &'a S) -> Self[src]

pub fn prepare(self) -> RepLog[src]

prepares this transaction to be committed to storage

pub fn rollback(self)[src]

rollback will consume the checkpoint and drop all changes (no really needed, going out of scope does the same, but nice for clarity)

Trait Implementations

impl<'a, S: ReadonlyStorage> ReadonlyStorage for StorageTransaction<'a, S>[src]

impl<'a, S: ReadonlyStorage> Storage for StorageTransaction<'a, S>[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for StorageTransaction<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for StorageTransaction<'a, S> where
    S: Sync

impl<'a, S> Sync for StorageTransaction<'a, S> where
    S: Sync

impl<'a, S> Unpin for StorageTransaction<'a, S>

impl<'a, S> UnwindSafe for StorageTransaction<'a, S> where
    S: RefUnwindSafe

Blanket Implementations

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, 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.