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§
Sourcetype Hasher: Debug + Clone + Copy + Hasher + Send + Sync
type Hasher: Debug + Clone + Copy + Hasher + Send + Sync
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
Sourcetype Header: Debug + Header<Hasher = Self::Hasher> + Sync + Send + DeserializeOwned + Clone
type Header: Debug + Header<Hasher = Self::Hasher> + Sync + Send + DeserializeOwned + Clone
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.