Trait sp_api::Metadata

source ·
pub trait Metadata<Block: BlockT>: Core<Block> {
    fn metadata(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<OpaqueMetadata, ApiError> { ... } fn metadata_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<OpaqueMetadata, ApiError> { ... } }
Expand description

The Metadata api trait that returns metadata for the runtime.

Provided Methods§

Returns the metadata of a runtime.

Returns the metadata of a runtime.

Trait Implementations§

The identifier of the runtime api.
The version of the runtime api.

Implementors§

impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Metadata<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
    RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
    OpaqueMetadata: UnwindSafe + RefUnwindSafe,
    __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,

impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Metadata<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
    RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
    OpaqueMetadata: UnwindSafe + RefUnwindSafe,
    __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,

impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Metadata<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
    RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
    OpaqueMetadata: UnwindSafe + RefUnwindSafe,
    __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,

impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Metadata<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
    RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
    OpaqueMetadata: UnwindSafe + RefUnwindSafe,
    __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,

impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Metadata<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
    RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
    OpaqueMetadata: UnwindSafe + RefUnwindSafe,
    __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,

impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Metadata<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
    RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
    OpaqueMetadata: UnwindSafe + RefUnwindSafe,
    __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,