pub enum NavigationEvent {
Started {
id: NavigationId,
requested_url: String,
},
Succeeded {
id: NavigationId,
final_url: String,
},
Failed {
id: NavigationId,
error: LoadError,
},
Cancelled {
id: NavigationId,
reason: NavigationCancellationReason,
},
}Expand description
Top-level navigation lifecycle. Every Started receives exactly one
terminal Succeeded, Failed, or Cancelled with the same id.
requested_urlis the initially requested URL — non-empty, never updated on redirects, and not the final URL.Succeeded.final_urlis the non-empty top-level URL after redirects and is authoritative for persistence (Locationstate is authoritative for live display).Failed.error.failing_urlis the one authoritative failure URL.
Variants§
Implementations§
pub fn id(&self) -> NavigationId
pub fn is_terminal(&self) -> bool
Trait Implementations§
Source§fn clone(&self) -> NavigationEvent
fn clone(&self) -> NavigationEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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