Skip to main content

Crate masterror_derive

Crate masterror_derive 

Source
Expand description

Derive macro for masterror::Error.

This crate is not intended to be used directly. Re-exported as masterror::Error.

The From<T> for AppError conversion generated by #[app_error(...)] attaches the domain error as the source of the produced AppError, keeping it downcastable and part of the error chain. Attaching requires T: Send + Sync + 'static; use the no_source flag in #[app_error(...)] to opt out and drop the domain error during conversion instead.

Derive Macrosยง

Error
Masterror