pub struct NavigationInfo {
pub url: String,
pub can_cancel: bool,
}Expand description
A navigation the page initiated, passed to WebView::on_navigation.
This is an observer, not a veto: wry decides navigation synchronously,
but Teksilo delivers backend events on a later event-loop tick (events are
posted, not delivered inline), so a true pre-navigation veto cannot be
surfaced through this callback. can_cancel is therefore always false on
the current backends — the field exists for forward compatibility. Use the
callback for URL-bar sync and logging.
Fields§
§url: StringThe URL being navigated to.
can_cancel: boolWhether the backend supports vetoing this navigation (always false
today — see the type docs).
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
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