Struct tp_inherents::InherentDataProviders [−][src]
pub struct InherentDataProviders { /* fields omitted */ }
Expand description
All InherentData
providers.
Implementations
pub fn register_provider<P: ProvideInherentData + Send + Sync + 'static>(
&self,
provider: P
) -> Result<(), Error>
pub fn register_provider<P: ProvideInherentData + Send + Sync + 'static>(
&self,
provider: P
) -> Result<(), Error>
Register an InherentData
provider.
The registration order is preserved and this order will also be used when creating the inherent data.
Result
Will return an error, if a provider with the same identifier already exists.
Returns if a provider for the given identifier exists.
Create inherent data.
Converts a given encoded error into a String
.
Useful if the implementation encounters an error for an identifier it does not know.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for InherentDataProviders
impl Send for InherentDataProviders
impl Sync for InherentDataProviders
impl Unpin for InherentDataProviders
impl !UnwindSafe for InherentDataProviders
Blanket Implementations
Mutably borrows from an owned value. Read more