Struct tp_inherents::CheckInherentsResult [−][src]
pub struct CheckInherentsResult { /* fields omitted */ }
Expand description
The result of checking inherents.
It either returns okay for all checks, stores all occurred errors or just one fatal error.
When a fatal error occurs, all other errors are removed and the implementation needs to abort checking inherents.
Implementations
pub fn put_error<E: Encode + IsFatalError>(
&mut self,
identifier: InherentIdentifier,
error: &E
) -> Result<(), Error>
pub fn put_error<E: Encode + IsFatalError>(
&mut self,
identifier: InherentIdentifier,
error: &E
) -> Result<(), Error>
Put an error into the result.
This makes this result resolve to ok() == false
.
Parameters
- identifier - The identifier of the inherent that generated the error.
- error - The error that will be encoded.
Get an error out of the result.
Return
Ok(Some(I))
if the error could be found and deserialized.Ok(None)
if the error could not be found.Err(_)
if the error could be found, but deserialization did not work.
Convert into an iterator over all contained errors.
Is this a fatal error?
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CheckInherentsResult
impl Send for CheckInherentsResult
impl Sync for CheckInherentsResult
impl Unpin for CheckInherentsResult
impl UnwindSafe for CheckInherentsResult
Blanket Implementations
Mutably borrows from an owned value. Read more