pub struct NavigationResult {
pub frame_id: String,
pub loader_id: Option<String>,
pub error_text: Option<String>,
pub is_download: bool,
}Expand description
Result of Page.navigate.
A frame id and loader id come back even when the page never loaded, so
error_text is the only field that says whether the navigation worked.
Fields§
§frame_id: StringThe frame that started navigating.
loader_id: Option<String>The loader driving this navigation, if one has been assigned yet.
error_text: Option<String>Why the navigation failed, e.g. "net::ERR_NAME_NOT_RESOLVED". Absent
when the navigation started successfully.
is_download: boolWhether the URL turned into a download instead of a page load. Older
Chrome builds omit the field, which reads as false.
Trait Implementations§
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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