fn validate_incoming_session_pix_config(
cfg: &IncomingSessionPixConfig,
) -> Result<(), ValidationError>Expand description
Rejects an IncomingSessionPixConfig whose acceptance range can never match anything, or whose
SSA batch size is outside what the protocol supports.
quota_range is operator-settable, and an empty (inverted) range silently makes
check_pix_params reject every offered PIX parameter set, which surfaces only as
UnacceptablePixParams errors at Session establishment time.
ssas_per_request is checked here rather than with a range attribute because
IncomingSessionPixConfig lives in hopr-transport-session and carries no Validate derive of
its own. Zero would mean no SsaRequest is ever sent, and above MAX_SSA_BATCH_SIZE the
per-cycle reconstructor state and the Start protocol channel pre-allocation both grow past what
that ceiling exists to bound. SessionManager::new clamps rather than trusting this check, since
nothing forces a programmatically built config through it.