Config

Trait Config 

Source
pub trait Config:
    Sized
    + Send
    + Sync
    + 'static {
    type AccountId: Debug + Clone + Encode + Decode + Serialize + Send;
    type Address: Debug + Encode + From<Self::AccountId>;
    type Signature: Debug + Clone + Encode + Decode + Send;
    type Hasher: Debug + Clone + Copy + Hasher + Send + Sync;
    type Header: Debug + Header<Hasher = Self::Hasher> + Sync + Send + DeserializeOwned + Clone;
    type ExtrinsicParams: ExtrinsicParams<Self>;
    type AssetId: Debug + Clone + Encode + DecodeAsType + EncodeAsType + Send;
}
Expand description

Runtime types.

Required Associated Types§

Source

type AccountId: Debug + Clone + Encode + Decode + Serialize + Send

The account ID type.

Source

type Address: Debug + Encode + From<Self::AccountId>

The address type.

Source

type Signature: Debug + Clone + Encode + Decode + Send

The signature type.

Source

type Hasher: Debug + Clone + Copy + Hasher + Send + Sync

The hashing system (algorithm) being used in the runtime (e.g. Blake2).

Source

type Header: Debug + Header<Hasher = Self::Hasher> + Sync + Send + DeserializeOwned + Clone

The block header.

Source

type ExtrinsicParams: ExtrinsicParams<Self>

This type defines the extrinsic extra and additional parameters.

Source

type AssetId: Debug + Clone + Encode + DecodeAsType + EncodeAsType + Send

This is used to identify an asset in the ChargeAssetTxPayment signed extension.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§