pub struct DapGlobalConfig {
pub report_storage_epoch_duration: Duration,
pub max_batch_duration: Duration,
pub min_batch_interval_start: Duration,
pub max_batch_interval_end: Duration,
pub supported_hpke_kems: Vec<HpkeKemId>,
}Expand description
Global DAP parameters common across tasks.
Fields§
§report_storage_epoch_duration: DurationThe report storage epoch duration. This value is used to control the period of time for which an Aggregator guarantees storage of reports and/or report metadata:
- Once an epoch has elapsed, all reports and metadata corresponding to the epoch may be deleted in order to reduce storage costs. In addition, all reports for this epoch will be rejected.
- Reports pertaining to epochs that have not yet begun may be rejected.
Let now be the current time truncated by the report storage epoch duration. All epochs
preceeding the previous are subject to deletion; for all epochs following the next, reports
will be rejected:
now-2 <- reports rejected, data subject to deletion
now-1 <- start of previous epoch
now <- start of current epoch
now+1 <- start of next epoch
now+2 <- reports rejectedThus, storage is only guaranteed for the previous epoch, the current epoch, and the next epoch.
max_batch_duration: DurationMaximum interval duration permitted in CollectReq. Prevents Collectors from requesting wide range or reports.
min_batch_interval_start: DurationLower bound of an acceptable batch interval for collect requests.
Batch intervals cannot start more than min_batch_interval_start
apart from the current batch interval.
max_batch_interval_end: DurationUpper bound of an acceptable batch interval for collect requests.
Batch intervals cannot end more than max_batch_interval_end
apart from the current batch interval.
supported_hpke_kems: Vec<HpkeKemId>HPKE KEM types that are supported. Used when generating HPKE receiver config.
Implementations§
Source§impl DapGlobalConfig
impl DapGlobalConfig
Sourcepub fn gen_hpke_receiver_config_list(
&self,
first_config_id: u8,
) -> impl IntoIterator<Item = HpkeReceiverConfig>
pub fn gen_hpke_receiver_config_list( &self, first_config_id: u8, ) -> impl IntoIterator<Item = HpkeReceiverConfig>
Generate a list of HPKE receiver configurations, one for each element of supported KEM
algorithm. first_config_id is used as the first config ID; subsequent IDs are chosen by
incrementing first_config_id.
Trait Implementations§
Source§impl Clone for DapGlobalConfig
impl Clone for DapGlobalConfig
Source§fn clone(&self) -> DapGlobalConfig
fn clone(&self) -> DapGlobalConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more