[][src]Trait rpki_rtr::client::VrpUpdate

pub trait VrpUpdate {
    fn push_vrp(
        &mut self,
        action: Action,
        payload: Payload
    ) -> Result<(), VrpError>; }

A type that can receive a VRP data update.

The update happens by repeatedly calling the push_vrp method with a single update as received by the client. The data is not filtered. It may contain duplicates and it may conflict with the current data set. It is the task of the implementor to deal with such situations.

A value of this type is created via VrpTarget::start when the client starts processing an update. If the update succeeds, the value is applied to the target by giving it to VrpTarget::apply. If the update fails at any point, the valus is simply dropped.

Required methods

fn push_vrp(&mut self, action: Action, payload: Payload) -> Result<(), VrpError>

Updates one single VRP.

The action argument describes whether the VRP is to be announced, i.e., added to the data set, or withdrawn, i.e., removed. The VRP itself is given via payload.

Loading content...

Implementations on Foreign Types

impl VrpUpdate for Vec<(Action, Payload)>[src]

Loading content...

Implementors

Loading content...