pub struct AnyNavigatorObserver { /* private fields */ }Expand description
Erased NavigatorObserver: what Navigator::observers holds.
Implementations§
Sourcepub fn upgrade(self, app: &App) -> Option<Retained<AnyNavigatorObserver>>
pub fn upgrade(self, app: &App) -> Option<Retained<AnyNavigatorObserver>>
A reference while something still keeps the object, None once it is freed or
its last keeper has let go; see Handle::upgrade.
Sourcepub fn keep(self, app: &App) -> Retained<AnyNavigatorObserver>
pub fn keep(self, app: &App) -> Retained<AnyNavigatorObserver>
A reference to an object something is known to keep; see
Handle::keep.
Sourcepub fn downcast<T: 'static>(self, app: &App) -> Option<Handle<T>>
pub fn downcast<T: 'static>(self, app: &App) -> Option<Handle<T>>
Dart’s observer as T: the typed handle when this observer is a T, else None.
Sourcepub fn did_replace(
self,
app: &mut App,
new_route: Option<AnyRoute>,
old_route: Option<AnyRoute>,
)
pub fn did_replace( self, app: &mut App, new_route: Option<AnyRoute>, old_route: Option<AnyRoute>, )
Sourcepub fn did_change_top(
self,
app: &mut App,
top_route: AnyRoute,
previous_top_route: Option<AnyRoute>,
)
pub fn did_change_top( self, app: &mut App, top_route: AnyRoute, previous_top_route: Option<AnyRoute>, )
Sourcepub fn did_start_user_gesture(
self,
app: &mut App,
route: AnyRoute,
previous_route: Option<AnyRoute>,
)
pub fn did_start_user_gesture( self, app: &mut App, route: AnyRoute, previous_route: Option<AnyRoute>, )
Sourcepub fn did_stop_user_gesture(self, app: &mut App)
pub fn did_stop_user_gesture(self, app: &mut App)
Trait Implementations§
Source§fn from(handle: AnyNavigatorObserver) -> HandleId
fn from(handle: AnyNavigatorObserver) -> HandleId
Converts to this type from the input type.
Source§fn from(handle: Handle<Leaf>) -> AnyNavigatorObserver
fn from(handle: Handle<Leaf>) -> AnyNavigatorObserver
Converts to this type from the input type.
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.