[][src]Trait euca::route::Route

pub trait Route<Message> {
    fn route(&self, _url: &str) -> Option<Message>;
}

Implement this trait on your router to allow for routing when the URL changes.

Required methods

fn route(&self, _url: &str) -> Option<Message>

Convert a new url to a message for the app.

Loading content...

Implementations on Foreign Types

impl<Message> Route<Message> for ()[src]

A placeholder router that does nothing and will never be used.

This serves as the default router for AppBuilder allowing apps to be constructed without specifying a router.

Loading content...

Implementors

Loading content...