Skip to main content

RouteAwareObject

Trait RouteAwareObject 

Source
pub trait RouteAwareObject: Sized + 'static {
    // Provided methods
    fn did_pop_next(self: Handle<Self>, app: &mut App) { ... }
    fn did_push(self: Handle<Self>, app: &mut App) { ... }
    fn did_pop(self: Handle<Self>, app: &mut App) { ... }
    fn did_push_next(self: Handle<Self>, app: &mut App) { ... }
}
Expand description

The object side of RouteAware: an arena object a RouteObserver informs. Implementing it makes Handle<Self> a RouteAware; Dart’s empty default bodies are the defaults here.

Provided Methods§

Source

fn did_pop_next(self: Handle<Self>, app: &mut App)

Source

fn did_push(self: Handle<Self>, app: &mut App)

Source

fn did_pop(self: Handle<Self>, app: &mut App)

Source

fn did_push_next(self: Handle<Self>, app: &mut App)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§