Trait clarity_repl::clarity::clarity::ClarityConnection[][src]

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

fn with_clarity_db_readonly_owned<F, R>(&mut self, to_do: F) -> R where
    F: FnOnce(ClarityDatabase<'_>) -> (R, ClarityDatabase<'_>)
[src]

Do something to the underlying DB that involves only reading.

fn with_analysis_db_readonly<F, R>(&mut self, to_do: F) -> R where
    F: FnOnce(&mut AnalysisDatabase<'_>) -> R, 
[src]

Loading content...

Provided methods

fn with_clarity_db_readonly<F, R>(&mut self, to_do: F) -> R where
    F: FnOnce(&mut ClarityDatabase<'_>) -> R, 
[src]

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>, 
[src]

Loading content...

Implementors

impl ClarityConnection for ClarityBlockConnection<'_>[src]

fn with_clarity_db_readonly_owned<F, R>(&mut self, to_do: F) -> R where
    F: FnOnce(ClarityDatabase<'_>) -> (R, ClarityDatabase<'_>)
[src]

Do something with ownership of the underlying DB that involves only reading.

impl ClarityConnection for ClarityReadOnlyConnection<'_>[src]

fn with_clarity_db_readonly_owned<F, R>(&mut self, to_do: F) -> R where
    F: FnOnce(ClarityDatabase<'_>) -> (R, ClarityDatabase<'_>)
[src]

Do something with ownership of the underlying DB that involves only reading.

impl ClarityConnection for ClarityTransactionConnection<'_>[src]

fn with_clarity_db_readonly_owned<F, R>(&mut self, to_do: F) -> R where
    F: FnOnce(ClarityDatabase<'_>) -> (R, ClarityDatabase<'_>)
[src]

Do something with ownership of the underlying DB that involves only reading.

Loading content...