risingwave_error

Derive Macro Arc

#[derive(Arc)]
{
    // Attributes available to this derive:
    #[thiserror_ext]
}
Expand description

Generates a new type that wraps the original error type in an Arc.

Specify the name of the new type with #[thiserror_ext(newtype(name = ..))].

This is similar to thiserror_ext::Box but wraps the original error type in an Arc, so that it can always be cloned and shared across threads. See thiserror_ext::Box for the explanation and examples.