Trait sc_client_api::backend::LockImportRun
source · [−]pub trait LockImportRun<Block: BlockT, B: Backend<Block>> {
fn lock_import_and_run<R, Err, F>(&self, f: F) -> Result<R, Err>
where
F: FnOnce(&mut ClientImportOperation<Block, B>) -> Result<R, Err>,
Err: From<Error>;
}
Expand description
Interface for performing operations on the backend.
Required methods
fn lock_import_and_run<R, Err, F>(&self, f: F) -> Result<R, Err> where
F: FnOnce(&mut ClientImportOperation<Block, B>) -> Result<R, Err>,
Err: From<Error>,
fn lock_import_and_run<R, Err, F>(&self, f: F) -> Result<R, Err> where
F: FnOnce(&mut ClientImportOperation<Block, B>) -> Result<R, Err>,
Err: From<Error>,
Lock the import lock, and run operations inside.