Struct flex_error::NoSource[][src]

pub struct NoSource;
Expand description

An ErrorSource that can be used to represent to lack of any error source. Both its Source and Detail types are (). This can be used for primitive errors that are not caused by any error source.

In practice, it is also possible to omit specifying any error source inside define_error!, which has similar effect as using NoSource but with the source field omitted entirely.

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.