Azure / GuestProxyAgent

MIT License
3 stars 10 forks source link

Proxy Agent: Move custom error type to enum #143

Closed mayankdaruka-msft closed 1 month ago

mayankdaruka-msft commented 1 month ago

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.