pub struct NavigationEventListenerSynchronousProxy { /* private fields */ }
Implementations§
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<NavigationEventListenerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<NavigationEventListenerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Called immediately after [Frame.SetNavigationEventListener
] and every time user-visible
navigation state has changed. In the first call, change
contains the current navigation
state (empty before the first navigation request). In every following call, change
will
have values set for all fields that have changed at any time since the previous
notification. This means that some fields may have the same value as was previously
reported, for example, if they changed to some other value and back again. If a field is
unset, then its value has not changed at any time since the previous notification.
Implementer must call the acknowledgement callback to receive new navigation events.
Trait Implementations§
Source§type Proxy = NavigationEventListenerProxy
type Proxy = NavigationEventListenerProxy
Source§type Protocol = NavigationEventListenerMarker
type Protocol = NavigationEventListenerMarker
Proxy
controls.