pub trait Config:
Sized
+ Send
+ Sync
+ 'static {
type Hash: BlockHash;
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 + Hasher<Output = Self::Hash>;
type Header: Debug + Header<Hasher = Self::Hasher> + Sync + Send + DeserializeOwned;
type ExtrinsicParams: ExtrinsicParams<Self>;
type AssetId: Debug + Clone + Encode + DecodeAsType + EncodeAsType + Send;
}
Expand description
Runtime types.
Required Associated Types§
Sourcetype Hasher: Debug + Hasher<Output = Self::Hash>
type Hasher: Debug + Hasher<Output = Self::Hash>
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
Sourcetype Header: Debug + Header<Hasher = Self::Hasher> + Sync + Send + DeserializeOwned
type Header: Debug + Header<Hasher = Self::Hasher> + Sync + Send + DeserializeOwned
The block header.
Sourcetype ExtrinsicParams: ExtrinsicParams<Self>
type ExtrinsicParams: ExtrinsicParams<Self>
This type defines the extrinsic extra and additional parameters.
Sourcetype AssetId: Debug + Clone + Encode + DecodeAsType + EncodeAsType + Send
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.