pub trait ManualSealApiClient<Hash>: ClientT{
// Provided methods
fn create_block<'life0, 'async_trait>(
&'life0 self,
create_empty: bool,
finalize: bool,
parent_hash: Option<Hash>,
) -> Pin<Box<dyn Future<Output = Result<CreatedBlock<Hash>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn finalize_block<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
justification: Option<EncodedJustification>,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the ManualSealApi
RPC API.
Provided Methods§
sourcefn create_block<'life0, 'async_trait>(
&'life0 self,
create_empty: bool,
finalize: bool,
parent_hash: Option<Hash>,
) -> Pin<Box<dyn Future<Output = Result<CreatedBlock<Hash>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn create_block<'life0, 'async_trait>(
&'life0 self,
create_empty: bool,
finalize: bool,
parent_hash: Option<Hash>,
) -> Pin<Box<dyn Future<Output = Result<CreatedBlock<Hash>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Instructs the manual-seal authorship task to create a new block
sourcefn finalize_block<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
justification: Option<EncodedJustification>,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn finalize_block<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
justification: Option<EncodedJustification>,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Instructs the manual-seal authorship task to finalize a block
Object Safety§
This trait is not object safe.