Struct fuel_core::service::adapters::BlockImporterAdapter
source · pub struct BlockImporterAdapter {
pub block_importer: Arc<Importer<Database, ExecutorAdapter, VerifierAdapter>>,
}
Fields§
§block_importer: Arc<Importer<Database, ExecutorAdapter, VerifierAdapter>>
Implementations§
source§impl BlockImporterAdapter
impl BlockImporterAdapter
pub fn new( config: Config, database: Database, executor: ExecutorAdapter, verifier: VerifierAdapter ) -> Self
pub async fn execute_and_commit(&self, sealed_block: SealedBlock) -> Result<()>
Trait Implementations§
source§impl BlockImporter for BlockImporterAdapter
impl BlockImporter for BlockImporterAdapter
source§fn block_events(&self) -> BoxStream<Arc<ImportResult>>
fn block_events(&self) -> BoxStream<Arc<ImportResult>>
Wait until the next block is available
source§impl BlockImporter for BlockImporterAdapter
impl BlockImporter for BlockImporterAdapter
type Database = Database
fn commit_result( &self, result: UncommittedImporterResult<StorageTransaction<Self::Database>> ) -> Result<()>
source§impl Clone for BlockImporterAdapter
impl Clone for BlockImporterAdapter
source§fn clone(&self) -> BlockImporterAdapter
fn clone(&self) -> BlockImporterAdapter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for BlockImporterAdapter
impl Send for BlockImporterAdapter
impl Sync for BlockImporterAdapter
impl Unpin for BlockImporterAdapter
impl !UnwindSafe for BlockImporterAdapter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more