pub trait PopEntryObject: Sized + 'static {
// Required methods
fn on_pop_invoked_with_result(
self: Handle<Self>,
app: &mut App,
did_pop: bool,
result: RouteResult,
);
fn can_pop_notifier(
self: Handle<Self>,
app: &App,
) -> Rc<dyn ValueListenable<bool>>;
}Expand description
The object side of PopEntry: an arena object a ModalRoute registers. Implementing it
makes Handle<Self> a PopEntry.
Required Methods§
Sourcefn on_pop_invoked_with_result(
self: Handle<Self>,
app: &mut App,
did_pop: bool,
result: RouteResult,
)
fn on_pop_invoked_with_result( self: Handle<Self>, app: &mut App, did_pop: bool, result: RouteResult, )
Sourcefn can_pop_notifier(
self: Handle<Self>,
app: &App,
) -> Rc<dyn ValueListenable<bool>>
fn can_pop_notifier( self: Handle<Self>, app: &App, ) -> Rc<dyn ValueListenable<bool>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".