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§
Sourcefn visit(
&mut self,
moniker: &ExtendedMoniker,
capability: &CapabilityDecl,
) -> Result<(), RoutingError>
fn visit( &mut self, moniker: &ExtendedMoniker, capability: &CapabilityDecl, ) -> Result<(), RoutingError>
Visit each CapabilityDecl
on the route.
Returning an Err
cancels visitation.