pub trait ProcessRun: Send + Sync {
    type PubPoint: ProcessPubPoint;

    // Required method
    fn process_ta(
        &self,
        tal: &Tal,
        uri: &TalUri,
        cert: &CaCert,
        tal_index: usize
    ) -> Result<Option<Self::PubPoint>, Failed>;
}
Expand description

A type that can process the valid data from the RPKI.

Required Associated Types§

source

type PubPoint: ProcessPubPoint

The type processing the valid data of a single publication point.

Required Methods§

source

fn process_ta( &self, tal: &Tal, uri: &TalUri, cert: &CaCert, tal_index: usize ) -> Result<Option<Self::PubPoint>, Failed>

Processes the given trust anchor.

If the method wants the content of this trust anchor to be validated and processed, it returns a processor for it as some success value. If it rather wishes to skip this trust anchor, it returns Ok(None). If it wishes to abort processing, it returns an error.

The tal_index argument indicates the index of the TAL in the metrics produced by the processing run. Similarly, the repository_index argument refers to the index of the repository publishing the trust anchor CA’s publication point in the metrics.

Implementors§

source§

impl<'a> ProcessRun for &'a routinator::payload::ValidationReport

§

type PubPoint = PubPointProcessor<'a>

source§

impl<'a, 's> ProcessRun for &'s routinator::rta::ValidationReport<'a>

§

type PubPoint = ValidateCa<'a, 's>