Struct clarity_repl::clarity::database::marf::NullBackingStore
source · [−]pub struct NullBackingStore {}
Implementations
sourceimpl NullBackingStore
impl NullBackingStore
pub fn new() -> Self
pub fn as_clarity_db<'a>(&'a mut self) -> ClarityDatabase<'a>
pub fn as_analysis_db<'a>(&'a mut self) -> AnalysisDatabase<'a>
Trait Implementations
sourceimpl ClarityBackingStore for NullBackingStore
impl ClarityBackingStore for NullBackingStore
sourcefn set_block_hash(&mut self, _bhh: StacksBlockId) -> Result<StacksBlockId>
fn set_block_hash(&mut self, _bhh: StacksBlockId) -> Result<StacksBlockId>
change the current MARF context to service reads from a different chain_tip used to implement time-shifted evaluation. returns the previous block header hash on success Read more
fn get_block_at_height(&mut self, _height: u32) -> Option<StacksBlockId>
fn get_open_chain_tip(&mut self) -> StacksBlockId
fn get_open_chain_tip_height(&mut self) -> u32
sourcefn get_current_block_height(&mut self) -> u32
fn get_current_block_height(&mut self) -> u32
this function returns the current block height, as viewed by this marfed-kv structure, i.e., it changes on time-shifted evaluation. the open_chain_tip functions always return data about the chain tip that is currently open for writing. Read more
sourcefn insert_metadata(
&mut self,
contract: &QualifiedContractIdentifier,
key: &str,
value: &str
)
fn insert_metadata(
&mut self,
contract: &QualifiedContractIdentifier,
key: &str,
value: &str
)
This function is used to obtain a committed contract hash, and the block header hash of the block in which the contract was initialized. This data is used to store contract metadata in the side store. Read more
fn get_metadata(
&mut self,
contract: &QualifiedContractIdentifier,
key: &str
) -> Result<Option<String>>
fn has_entry(&mut self, key: &str) -> bool
sourcefn make_contract_commitment(
&mut self,
contract_hash: Sha512Trunc256Sum
) -> String
fn make_contract_commitment(
&mut self,
contract_hash: Sha512Trunc256Sum
) -> String
The contract commitment is the hash of the contract, plus the block height in which the contract was initialized. Read more
Auto Trait Implementations
impl RefUnwindSafe for NullBackingStore
impl Send for NullBackingStore
impl Sync for NullBackingStore
impl Unpin for NullBackingStore
impl UnwindSafe for NullBackingStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more