Trait clarity_repl::clarity::clarity::ClarityConnection
source · [−]pub trait ClarityConnection {
fn with_clarity_db_readonly_owned<F, R>(&mut self, to_do: F) -> R
where
F: FnOnce(ClarityDatabase<'_>) -> (R, ClarityDatabase<'_>);
fn with_analysis_db_readonly<F, R>(&mut self, to_do: F) -> R
where
F: FnOnce(&mut AnalysisDatabase<'_>) -> R;
fn with_clarity_db_readonly<F, R>(&mut self, to_do: F) -> R
where
F: FnOnce(&mut ClarityDatabase<'_>) -> R,
{ ... }
fn with_readonly_clarity_env<F, R>(
&mut self,
mainnet: bool,
sender: PrincipalData,
cost_track: LimitedCostTracker,
to_do: F
) -> Result<R, InterpreterError>
where
F: FnOnce(&mut Environment<'_, '_>) -> Result<R, InterpreterError>,
{ ... }
}
Required Methods
sourcefn with_clarity_db_readonly_owned<F, R>(&mut self, to_do: F) -> Rwhere
F: FnOnce(ClarityDatabase<'_>) -> (R, ClarityDatabase<'_>),
fn with_clarity_db_readonly_owned<F, R>(&mut self, to_do: F) -> Rwhere
F: FnOnce(ClarityDatabase<'_>) -> (R, ClarityDatabase<'_>),
Do something to the underlying DB that involves only reading.
sourcefn with_analysis_db_readonly<F, R>(&mut self, to_do: F) -> Rwhere
fn with_analysis_db_readonly<F, R>(&mut self, to_do: F) -> Rwhere
F: FnOnce(&mut AnalysisDatabase<'_>) -> R,
Provided Methods
sourcefn with_clarity_db_readonly<F, R>(&mut self, to_do: F) -> Rwhere
fn with_clarity_db_readonly<F, R>(&mut self, to_do: F) -> Rwhere
F: FnOnce(&mut ClarityDatabase<'_>) -> R,
sourcefn with_readonly_clarity_env<F, R>(