Trait routinator::engine::ProcessRun
source · 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§
sourcetype PubPoint: ProcessPubPoint
type PubPoint: ProcessPubPoint
The type processing the valid data of a single publication point.
Required Methods§
sourcefn process_ta(
&self,
tal: &Tal,
uri: &TalUri,
cert: &CaCert,
tal_index: usize
) -> Result<Option<Self::PubPoint>, Failed>
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.