In my previous PRs, I introduced the custom error as a struct with a boxed error type enum. However since we have a finite set of error types, it would be more efficient to handle this during compile time via an enum directly instead of requiring dynamically sized error handling with a box.
This PR moves to using an enum for the error type defined in the proxy agent crate. Other crates will use a similar pattern.
This PR is addressing feedback from #117.
In my previous PRs, I introduced the custom error as a struct with a boxed error type enum. However since we have a finite set of error types, it would be more efficient to handle this during compile time via an enum directly instead of requiring dynamically sized error handling with a box.
This PR moves to using an enum for the error type defined in the proxy agent crate. Other crates will use a similar pattern.