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: MonotonicTime,
) -> Result<NavigationControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicTime, ) -> 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: MonotonicTime,
) -> Result<NavigationControllerLoadUrlResult, Error>
pub fn load_url( &self, url: &str, params: LoadUrlParams, ___deadline: MonotonicTime, ) -> 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§
§type Proxy = NavigationControllerProxy
type Proxy = NavigationControllerProxy
The async proxy for the same protocol.
§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