routing::legacy_router

Trait ExposeVisitor

Source
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§

Source

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

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

Implementations on Foreign Types§

Source§

impl ExposeVisitor for Availability

Source§

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

Implementors§