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

Create a new instance.

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 result ok?

Is this a fatal error?

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Attempt to deserialise the value from input.

Attempt to skip the encoded value from input. Read more

Returns the fixed encoded size of the type. Read more

Returns the “default value” for a type. Read more

Convert self to a slice and append it to the destination.

If possible give a hint of expected size of the encoding. Read more

Convert self to an owned vector.

Convert self to a slice and then invoke the given closure with it.

Calculates the encoded size. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Decode Self and consume all of the given input data. Read more

Decode Self and consume all of the given input data. Read more

Decode Self with the given maximum recursion depth. Read more

Performs the conversion.

Performs the conversion.

Return an encoding of Self prepended by given slice.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.