pub enum NavigationControllerRequest {
LoadUrl {
url: String,
params: LoadUrlParams,
responder: NavigationControllerLoadUrlResponder,
},
GoBack {
control_handle: NavigationControllerControlHandle,
},
GoForward {
control_handle: NavigationControllerControlHandle,
},
Stop {
control_handle: NavigationControllerControlHandle,
},
Reload {
type_: ReloadType,
control_handle: NavigationControllerControlHandle,
},
}
Expand description
Provides methods for controlling and querying the navigation state of a [Frame
].
Variants§
LoadUrl
Tells the [Frame
] to navigate to a url
.
url
: The address to navigate to.params
: Additional parameters that affect how the resource will be loaded (e.g. cookies, HTTP headers, etc.)
If an error occurred, the NavigationControllerError
will be set to one of these values:
INVALID_URL
: Theurl
parameter is invalid.INVALID_HEADER
: At least one of the headers in [LoadUrlParams.headers
] is invalid.
GoBack
Tells the [Frame
] to navigate to the previous page in its history, if any.
Fields
§
control_handle: NavigationControllerControlHandle
GoForward
Tells the [Frame
] to navigate to the next page in its history, if any.
Fields
§
control_handle: NavigationControllerControlHandle
Stop
Tells the [Frame
] to stop the current navigation if a navigation is ongoing.
Fields
§
control_handle: NavigationControllerControlHandle
Reload
Tells the [Frame
] to reload the current page.
Implementations§
pub fn into_load_url( self, ) -> Option<(String, LoadUrlParams, NavigationControllerLoadUrlResponder)>
pub fn into_go_back(self) -> Option<NavigationControllerControlHandle>
pub fn into_go_forward(self) -> Option<NavigationControllerControlHandle>
pub fn into_stop(self) -> Option<NavigationControllerControlHandle>
pub fn into_reload( self, ) -> Option<(ReloadType, NavigationControllerControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
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