pub struct NavigationEventListenerProxy { /* private fields */ }
Implementations§
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.web/NavigationEventListener.
Sourcepub fn take_event_stream(&self) -> NavigationEventListenerEventStream
pub fn take_event_stream(&self) -> NavigationEventListenerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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§fn clone(&self) -> NavigationEventListenerProxy
fn clone(&self) -> NavigationEventListenerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§type Protocol = NavigationEventListenerMarker
type Protocol = NavigationEventListenerMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)