routing::legacy_router

Trait OfferVisitor

Source
pub trait OfferVisitor {
    // Required method
    fn visit(
        &mut self,
        moniker: &ExtendedMoniker,
        offer: &OfferDecl,
    ) -> Result<(), RoutingError>;
}
Expand description

Visitor pattern trait for visiting all OfferDecl during a route.

Required Methods§

Source

fn visit( &mut self, moniker: &ExtendedMoniker, offer: &OfferDecl, ) -> Result<(), RoutingError>

Implementations on Foreign Types§

Source§

impl OfferVisitor for Availability

Source§

fn visit( &mut self, moniker: &ExtendedMoniker, offer: &OfferDecl, ) -> Result<(), RoutingError>

Implementors§