fn required(name: &'static str) -> impl Fn(Error) -> Error
Promotes a missing required state event to an authorization input error.