Struct flex_error::DetailOnly[][src]

pub struct DetailOnly<Detail>(_);
Expand description

An ErrorSource that only provides error details but do not provide any trace. This can typically comes from primitive error types that do not implement Error. The Detail type is the error and the returned trace is None.

It is also possible to omit specifying the error as an error source, and instead place it as a field in the error variant. However specifying it as a DetailOnly source may give stronger hint to the reader that the particular error variant is caused by other underlying errors.

Trait Implementations

The type of the error detail that can be extracted from the error source

The type of the error source.

Extracts the error details out from the error source, together with an optional error trace. Read more

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

Performs the conversion.

Performs the conversion.

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.