pub struct WatcherV6Proxy { /* private fields */ }
Implementations§
Source§impl WatcherV6Proxy
impl WatcherV6Proxy
Sourcepub fn take_event_stream(&self) -> WatcherV6EventStream
pub fn take_event_stream(&self) -> WatcherV6EventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn watch(
&self,
) -> QueryResponseFut<Vec<EventV6>, DefaultFuchsiaResourceDialect>
pub fn watch( &self, ) -> QueryResponseFut<Vec<EventV6>, DefaultFuchsiaResourceDialect>
Hanging-Get style API for observing routing changes.
Clients must only have one pending Watch
call at a time. Calling
Watch
while a request is already pending will cause the protocol to
close.
The first N events will always be existing
where N is the number of
IPv6 routes that already existed when the server-end of the protocol was
initialized. The following event will be idle
signaling the end of the
existing
events. At this point the client has watched all existing
state and will never again observe an existing
event.
Events are returned in batches of up to MAX_EVENTS
events. There is no
correlation between the batch size/boundary and it’s contents: it is
perfectly valid for the server to split the block of existing
events,
across several batches. Clients should view this API as providing a
stream of events, where batches are used to reduce IPC load on the
system.
- response
events
A vector of at mostMAX_EVENTS
events.
Trait Implementations§
Source§impl Clone for WatcherV6Proxy
impl Clone for WatcherV6Proxy
Source§fn clone(&self) -> WatcherV6Proxy
fn clone(&self) -> WatcherV6Proxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WatcherV6Proxy
impl Debug for WatcherV6Proxy
Source§impl Proxy for WatcherV6Proxy
impl Proxy for WatcherV6Proxy
Source§type Protocol = WatcherV6Marker
type Protocol = WatcherV6Marker
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>
Source§impl WatcherV6ProxyInterface for WatcherV6Proxy
impl WatcherV6ProxyInterface for WatcherV6Proxy
type WatchResponseFut = QueryResponseFut<Vec<EventV6>>
fn watch(&self) -> Self::WatchResponseFut
Auto Trait Implementations§
impl Freeze for WatcherV6Proxy
impl !RefUnwindSafe for WatcherV6Proxy
impl Send for WatcherV6Proxy
impl Sync for WatcherV6Proxy
impl Unpin for WatcherV6Proxy
impl !UnwindSafe for WatcherV6Proxy
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
)