routing::legacy_router

Trait CapabilityVisitor

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

Visitor pattern trait for visiting all CapabilityDecl during a route.

Required Methods§

Source

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

Visit each CapabilityDecl on the route. Returning an Err cancels visitation.

Implementations on Foreign Types§

Source§

impl CapabilityVisitor for Availability

Implementors§