[−][src]Struct clarity_repl::clarity::database::RollbackWrapper
Implementations
impl<'a> RollbackWrapper<'a>
[src]
pub fn new(store: &'a mut dyn ClarityBackingStore) -> RollbackWrapper<'_>
[src]
pub fn from_persisted_log(
store: &'a mut dyn ClarityBackingStore,
log: RollbackWrapperPersistedLog
) -> RollbackWrapper<'_>
[src]
store: &'a mut dyn ClarityBackingStore,
log: RollbackWrapperPersistedLog
) -> RollbackWrapper<'_>
pub fn nest(&mut self)
[src]
pub fn rollback(&mut self)
[src]
pub fn depth(&self) -> usize
[src]
pub fn commit(&mut self)
[src]
impl<'a> RollbackWrapper<'a>
[src]
pub fn put(&mut self, key: &str, value: &str)
[src]
pub fn set_block_hash(&mut self, bhh: StacksBlockId) -> Result<StacksBlockId>
[src]
pub fn get<T>(&mut self, key: &str) -> Option<T> where
T: ClarityDeserializable<T>,
[src]
T: ClarityDeserializable<T>,
pub fn get_value(
&mut self,
key: &str,
expected: &TypeSignature
) -> Option<Value>
[src]
&mut self,
key: &str,
expected: &TypeSignature
) -> Option<Value>
pub fn get_current_block_height(&mut self) -> u32
[src]
pub fn get_block_header_hash(
&mut self,
block_height: u32
) -> Option<StacksBlockId>
[src]
&mut self,
block_height: u32
) -> Option<StacksBlockId>
pub fn prepare_for_contract_metadata(
&mut self,
contract: &QualifiedContractIdentifier,
content_hash: Sha512Trunc256Sum
)
[src]
&mut self,
contract: &QualifiedContractIdentifier,
content_hash: Sha512Trunc256Sum
)
pub fn insert_metadata(
&mut self,
contract: &QualifiedContractIdentifier,
key: &str,
value: &str
)
[src]
&mut self,
contract: &QualifiedContractIdentifier,
key: &str,
value: &str
)
pub fn get_metadata(
&mut self,
contract: &QualifiedContractIdentifier,
key: &str
) -> Result<Option<String>>
[src]
&mut self,
contract: &QualifiedContractIdentifier,
key: &str
) -> Result<Option<String>>
pub fn has_entry(&mut self, key: &str) -> bool
[src]
pub fn has_metadata_entry(
&mut self,
contract: &QualifiedContractIdentifier,
key: &str
) -> bool
[src]
&mut self,
contract: &QualifiedContractIdentifier,
key: &str
) -> bool
Trait Implementations
impl<'_> From<RollbackWrapper<'_>> for RollbackWrapperPersistedLog
[src]
fn from(o: RollbackWrapper<'_>) -> RollbackWrapperPersistedLog
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for RollbackWrapper<'a>
impl<'a> !Send for RollbackWrapper<'a>
impl<'a> !Sync for RollbackWrapper<'a>
impl<'a> Unpin for RollbackWrapper<'a>
impl<'a> !UnwindSafe for RollbackWrapper<'a>
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> Same<T> for T
type Output = T
Should always be Self
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>,