pub struct StopWatcherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl StopWatcherSynchronousProxy
impl StopWatcherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<StopWatcherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<StopWatcherEvent, 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_component(
&self,
moniker: &str,
expected_exit: ExitStatus,
___deadline: MonotonicInstant,
) -> Result<ClientEnd<StopWaiterMarker>, Error>
pub fn watch_component( &self, moniker: &str, expected_exit: ExitStatus, ___deadline: MonotonicInstant, ) -> Result<ClientEnd<StopWaiterMarker>, Error>
Subscribes to an underlying event stream notifying the server when a component identified by the given moniker stops with the given status.
Returns the watcher protocol that can be used to actually get the notification. This is done so that we ensure that the subscription is established before the component could even crash and prevent the client from missing any event.
Trait Implementations§
Source§impl Debug for StopWatcherSynchronousProxy
impl Debug for StopWatcherSynchronousProxy
Source§impl SynchronousProxy for StopWatcherSynchronousProxy
impl SynchronousProxy for StopWatcherSynchronousProxy
Source§type Proxy = StopWatcherProxy
type Proxy = StopWatcherProxy
The async proxy for the same protocol.
Source§type Protocol = StopWatcherMarker
type Protocol = StopWatcherMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for StopWatcherSynchronousProxy
impl RefUnwindSafe for StopWatcherSynchronousProxy
impl Send for StopWatcherSynchronousProxy
impl Sync for StopWatcherSynchronousProxy
impl Unpin for StopWatcherSynchronousProxy
impl UnwindSafe for StopWatcherSynchronousProxy
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
Mutably borrows from an owned value. Read more