pub struct WatcherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl WatcherSynchronousProxy
impl WatcherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<WatcherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<WatcherEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn watch(&self, ___deadline: MonotonicInstant) -> Result<Event, Error>
pub fn watch(&self, ___deadline: MonotonicInstant) -> Result<Event, Error>
Hanging get for an interface addition/deletion change.
Clients should only have one call of this method at a time; a second call to this method while a call is already pending will cause the server end of the protocol to be closed.
If there are N interfaces present at the time the server end of the
protocol is initialized, then the first N invocations of this method
will return [Event.existing
] followed by a single [Event.idle
]
indicating that all existing interfaces have been sent. Subsequent calls
will immediately return if there is a change to be reported, or block
until a change occurs.
The server may choose to coalesce property change events, e.g. when multiple independent property changes occur. As a result, clients cannot assume that the order in which they observe the interface changes is the order in which the changes occurred.
- response
event
the interface change event.
Trait Implementations§
Source§impl Debug for WatcherSynchronousProxy
impl Debug for WatcherSynchronousProxy
Source§impl SynchronousProxy for WatcherSynchronousProxy
impl SynchronousProxy for WatcherSynchronousProxy
Source§type Proxy = WatcherProxy
type Proxy = WatcherProxy
Source§type Protocol = WatcherMarker
type Protocol = WatcherMarker
Proxy
controls.