pub struct NavigationControllerSynchronousProxy { /* private fields */ }
Implementations§
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<NavigationControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<NavigationControllerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn load_url(
&self,
url: &str,
params: LoadUrlParams,
___deadline: MonotonicInstant,
) -> Result<NavigationControllerLoadUrlResult, Error>
pub fn load_url( &self, url: &str, params: LoadUrlParams, ___deadline: MonotonicInstant, ) -> Result<NavigationControllerLoadUrlResult, Error>
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.
Sourcepub fn go_back(&self) -> Result<(), Error>
pub fn go_back(&self) -> Result<(), Error>
Tells the [Frame
] to navigate to the previous page in its history, if any.
Sourcepub fn go_forward(&self) -> Result<(), Error>
pub fn go_forward(&self) -> Result<(), Error>
Tells the [Frame
] to navigate to the next page in its history, if any.
Sourcepub fn stop(&self) -> Result<(), Error>
pub fn stop(&self) -> Result<(), Error>
Tells the [Frame
] to stop the current navigation if a navigation is ongoing.
Sourcepub fn reload(&self, type_: ReloadType) -> Result<(), Error>
pub fn reload(&self, type_: ReloadType) -> Result<(), Error>
Tells the [Frame
] to reload the current page.
Trait Implementations§
Source§type Proxy = NavigationControllerProxy
type Proxy = NavigationControllerProxy
The async proxy for the same protocol.
Source§type Protocol = NavigationControllerMarker
type Protocol = NavigationControllerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. 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