Menu

Struct

NavigationRequest

kurogane::NavigationRequestSource
pub struct NavigationRequest { /* private fields */ }

A page’s navigation of the window it is in, passed to App::on_navigation.

Methods

#pub fn url(&self) -> &str

The URL the window would load.

#pub fn origin(&self) -> &Origin

The origin of the document the window would show.

#pub fn from_origin(&self) -> &Origin

The origin of the document the window shows now.

#pub fn user_gesture(&self) -> bool

Whether the user asked, by clicking a link or a button, rather than a script on its own.

#pub fn is_redirect(&self) -> bool

Whether the server sent the navigation here from the URL it asked for first.

Trait implementations