pub trait ExposeVisitor {
// Required method
fn visit(
&mut self,
moniker: &ExtendedMoniker,
expose: &ExposeDecl,
) -> Result<(), RoutingError>;
}
Expand description
Visitor pattern trait for visiting all ExposeDecl
during a route.
Required Methods§
Sourcefn visit(
&mut self,
moniker: &ExtendedMoniker,
expose: &ExposeDecl,
) -> Result<(), RoutingError>
fn visit( &mut self, moniker: &ExtendedMoniker, expose: &ExposeDecl, ) -> Result<(), RoutingError>
Visit each ExposeDecl
on the route.
Returning an Err
cancels visitation.