pub struct WatcherV4Proxy { /* private fields */ }Implementations§
Source§impl WatcherV4Proxy
impl WatcherV4Proxy
Sourcepub fn take_event_stream(&self) -> WatcherV4EventStream
pub fn take_event_stream(&self) -> WatcherV4EventStream
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<EventV4>, FDomainResourceDialect>
pub fn watch(&self) -> QueryResponseFut<Vec<EventV4>, FDomainResourceDialect>
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
IPv4 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
eventsA vector of at mostMAX_EVENTSevents.
Trait Implementations§
Source§impl Clone for WatcherV4Proxy
impl Clone for WatcherV4Proxy
Source§fn clone(&self) -> WatcherV4Proxy
fn clone(&self) -> WatcherV4Proxy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WatcherV4Proxy
impl Debug for WatcherV4Proxy
Source§impl Proxy for WatcherV4Proxy
impl Proxy for WatcherV4Proxy
Source§type Protocol = WatcherV4Marker
type Protocol = WatcherV4Marker
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Source§fn into_channel(self) -> Result<Channel, Self>
fn into_channel(self) -> Result<Channel, Self>
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Source§fn domain(&self) -> Arc<Client>
fn domain(&self) -> Arc<Client>
Source§fn on_closed(&self) -> OnFDomainSignals
fn on_closed(&self) -> OnFDomainSignals
PEER_CLOSED signal.Source§impl WatcherV4ProxyInterface for WatcherV4Proxy
impl WatcherV4ProxyInterface for WatcherV4Proxy
type WatchResponseFut = QueryResponseFut<Vec<EventV4>, FDomainResourceDialect>
fn watch(&self) -> Self::WatchResponseFut
Auto Trait Implementations§
impl Freeze for WatcherV4Proxy
impl !RefUnwindSafe for WatcherV4Proxy
impl Send for WatcherV4Proxy
impl Sync for WatcherV4Proxy
impl Unpin for WatcherV4Proxy
impl UnsafeUnpin for WatcherV4Proxy
impl !UnwindSafe for WatcherV4Proxy
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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]