pub struct WatcherProxy { /* private fields */ }
Implementations§
Source§impl WatcherProxy
impl WatcherProxy
Sourcepub fn take_event_stream(&self) -> WatcherEventStream
pub fn take_event_stream(&self) -> WatcherEventStream
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<Event>, DefaultFuchsiaResourceDialect>
pub fn watch( &self, ) -> QueryResponseFut<Vec<Event>, DefaultFuchsiaResourceDialect>
Hanging get for filtering resource changes.
Clients should only have one pending call of this method outstanding at a time; a second call to this method while a call is already pending will cause the server to close the channel.
The first N events returned by this method will be [Event.existing
],
enumerating all existing N filtering resources, followed by a single
[Event.idle
] indicating that all existing resources have been sent.
Subsequent calls will immediately return with new events if there is at
least one to be reported, or will otherwise block until an event occurs.
In order to communicate atomic updates, after the initial state is
provided followed by [Event.idle
], a sequence of events that occurred
atomically will always be followed by [Event.end_of_update
],
demarcating the end of the atomic update.
Note that each non-sentinel event is scoped to a controller; the
ControllerId
is provided along with the event to allow the client to
disambiguate.
Trait Implementations§
Source§impl Clone for WatcherProxy
impl Clone for WatcherProxy
Source§fn clone(&self) -> WatcherProxy
fn clone(&self) -> WatcherProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WatcherProxy
impl Debug for WatcherProxy
Source§impl Proxy for WatcherProxy
impl Proxy for WatcherProxy
Source§type Protocol = WatcherMarker
type Protocol = WatcherMarker
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 WatcherProxyInterface for WatcherProxy
impl WatcherProxyInterface for WatcherProxy
type WatchResponseFut = QueryResponseFut<Vec<Event>>
fn watch(&self) -> Self::WatchResponseFut
Auto Trait Implementations§
impl Freeze for WatcherProxy
impl !RefUnwindSafe for WatcherProxy
impl Send for WatcherProxy
impl Sync for WatcherProxy
impl Unpin for WatcherProxy
impl !UnwindSafe for WatcherProxy
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
)