pub trait ProtectedEndpoint {
type Auth;
type Inner: BindableEndpoint;
}Expand description
Bind a handler to a Protected<Auth, E> endpoint.
The handler’s first argument MUST be Auth. This is enforced by the
AuthHandler<Auth, Args> trait — the compiler rejects handlers that
don’t take Auth as their first argument.
Trait to extract binding info from the inner endpoint of a Protected type.