[−][src]Struct cosmwasm_storage::StorageTransaction
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,
S: RefUnwindSafe,
impl<'a, S> Send for StorageTransaction<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> Sync for StorageTransaction<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> Unpin for StorageTransaction<'a, S>
impl<'a, S> UnwindSafe for StorageTransaction<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,