pub fn classic_upgrade_epoch(
consumer_protocol: bool,
every_subscription_decodable: bool,
generation: i32,
) -> Option<i32>Expand description
Admit a classic-to-consumer upgrade exactly when the protocol and every member subscription have a consumer representation.
The returned epoch is the classic generation clamped to the first valid consumer epoch.