Struct fuel_core::service::adapters::BlockProducerAdapter
source · pub struct BlockProducerAdapter {
pub block_producer: Arc<BlockProducerService>,
}
Fields§
§block_producer: Arc<BlockProducerService>
Implementations§
source§impl BlockProducerAdapter
impl BlockProducerAdapter
pub fn new(block_producer: BlockProducerService) -> Self
Trait Implementations§
source§impl BlockProducer for BlockProducerAdapter
impl BlockProducer for BlockProducerAdapter
type Database = Database
fn produce_and_execute_block<'life0, 'async_trait>( &'life0 self, height: BlockHeight, block_time: Option<Tai64>, max_gas: Word ) -> Pin<Box<dyn Future<Output = Result<UncommittedResult<StorageTransaction<Database>>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn dry_run<'life0, 'async_trait>( &'life0 self, transaction: Transaction, height: Option<BlockHeight>, utxo_validation: Option<bool> ) -> Pin<Box<dyn Future<Output = Result<Vec<Receipt>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§impl Clone for BlockProducerAdapter
impl Clone for BlockProducerAdapter
source§fn clone(&self) -> BlockProducerAdapter
fn clone(&self) -> BlockProducerAdapter
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 moreimpl BlockProducerPort for BlockProducerAdapter
Auto Trait Implementations§
impl !RefUnwindSafe for BlockProducerAdapter
impl Send for BlockProducerAdapter
impl Sync for BlockProducerAdapter
impl Unpin for BlockProducerAdapter
impl !UnwindSafe for BlockProducerAdapter
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