Skip to main content

connect_impl

Attribute Macro connect_impl 

Source
#[connect_impl]
Expand description

#[connect_impl] — attribute macro applied to a Connect service impl block that validates the borrowed request view at the top of every handler method, without converting it to an owned message. Requires Validate on the generated view type. Guarantees protovalidate runs for every RPC without relying on per-handler discipline.

Only exported when the connect feature is enabled (the default), since the emitted code calls ValidationError::into_connect_error.