Skip to main content

RouteEntry

Struct RouteEntry 

Source
pub struct RouteEntry { /* private fields */ }
Expand description

Dart’s _RouteEntry: one Route and its place in a NavigatorState’s history.

This is also the RouteTransitionRecord a TransitionDelegate receives.

Implementations§

Source§

impl RouteEntry

Source

pub const K_DEBUG_POP_ATTEMPT_LIMIT: usize = 100

The maximum number of did_pop attempts a mark_for_pop makes on a route that handles pops internally.

Source

pub fn page_based(self: Handle<Self>, app: &App) -> bool

Whether this entry was created from a Page in Navigator::pages.

Source

pub fn current_state(self: Handle<Self>, app: &App) -> RouteLifecycle

The lifecycle state this entry is in.

Source

pub fn restoration_id(self: Handle<Self>, app: &App) -> Option<String>

The restoration ID under which this entry’s route is serialized, if any.

Trait Implementations§

Source§

impl RouteTransitionRecord for RouteEntry

Source§

fn route(self: Handle<Self>, app: &App) -> AnyRoute

Retrieves the wrapped Route.
Source§

fn is_waiting_for_entering_decision(self: Handle<Self>, app: &App) -> bool

Whether this route is waiting for the decision on how to enter the screen. Read more
Source§

fn is_waiting_for_exiting_decision(self: Handle<Self>, app: &App) -> bool

Whether this route is waiting for the decision on how to exit the screen. Read more
Source§

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

Marks the route to be pushed with transition.
Source§

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

Marks the route to be added without transition.
Source§

fn mark_for_pop(self: Handle<Self>, app: &mut App, result: RouteResult)

Marks the route to be popped with transition.
Source§

fn mark_for_complete(self: Handle<Self>, app: &mut App, result: RouteResult)

Marks the route to be completed without transition.

Auto Trait Implementations§

§

impl !RefUnwindSafe for RouteEntry

§

impl !Send for RouteEntry

§

impl !Sync for RouteEntry

§

impl !UnwindSafe for RouteEntry

§

impl Forget for RouteEntry

§

impl Freeze for RouteEntry
where NonZero<u32>: Freeze, &'static RouteVTable: Freeze, *const RcInner<Keep> is !null: Freeze, PhantomData<RcInner<Keep>>: Freeze, *const RcInner<RestorationInformation> is !null: Freeze, PhantomData<RcInner<RestorationInformation>>: Freeze, *const RcInner<dyn Any> is !null: Freeze, PhantomData<RcInner<dyn Any>>: Freeze,

§

impl Move for RouteEntry

§

impl Unpin for RouteEntry
where NonZero<u32>: Unpin, &'static RouteVTable: Unpin, Rc<Keep>: Unpin, Rc<RestorationInformation>: Unpin, Rc<dyn Any>: Unpin,

§

impl UnsafeUnpin for RouteEntry
where NonZeroU32Inner: UnsafeUnpin, &'static RouteVTable: UnsafeUnpin, *const RcInner<Keep> is !null: UnsafeUnpin, PhantomData<RcInner<Keep>>: UnsafeUnpin, *const RcInner<RestorationInformation> is !null: UnsafeUnpin, PhantomData<RcInner<RestorationInformation>>: UnsafeUnpin, *const RcInner<dyn Any> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Any>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>