oxidecomputer / dropshot

expose REST APIs from a Rust program
Apache License 2.0
843 stars 74 forks source link

[5/n] [dropshot_endpoint] reject endpoints with a where clause #1023

Closed sunshowers closed 3 months ago

sunshowers commented 4 months ago

A where clause is similar to a generic, though can support more kinds of bounds. Reject where clauses entirely.

This is particularly relevant for trait-based servers where users are apt to specify constraints like where Self::Context: <something>. But it doesn't make sense for function-based servers either.