pub struct RebootMethodsWatcherRegisterSynchronousProxy { /* private fields */ }Implementations§
Source§impl RebootMethodsWatcherRegisterSynchronousProxy
impl RebootMethodsWatcherRegisterSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RebootMethodsWatcherRegisterEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RebootMethodsWatcherRegisterEvent, 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 register(
&self,
watcher: ClientEnd<RebootMethodsWatcherMarker>,
) -> Result<(), Error>
pub fn register( &self, watcher: ClientEnd<RebootMethodsWatcherMarker>, ) -> Result<(), Error>
Register a watcher to be notified when a Reboot method is called. The Register channel will be used at most once to notify the watcher of an impending reboot and allow it the chance to respond.
Watchers can unregister by closing the underlying channel.
Replaced by RegisterWatcher.
Sourcepub fn register_with_ack(
&self,
watcher: ClientEnd<RebootMethodsWatcherMarker>,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_with_ack( &self, watcher: ClientEnd<RebootMethodsWatcherMarker>, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Registers a watcher to be notified when a Reboot method is called.
Once the watcher has been successfully registered with the server, then the request will be completed and the RebootMethodsWatcherRegister channel will be left open (though a client is free to close it at this time).
If there is an error in registering the watcher, then the RebootMethodsWatcherRegister channel will be closed without completing the request.
The provided watcher channel will be used at most once to notify the
watcher of an impending reboot and allow it the chance to respond.
Watchers can unregister by closing their RebootMethodsWatcher channel.
Replaced by RegisterWatcher.
Sourcepub fn register_watcher(
&self,
watcher: ClientEnd<RebootWatcherMarker>,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_watcher( &self, watcher: ClientEnd<RebootWatcherMarker>, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Registers a watcher to be notified when a Reboot method is called.
Once the watcher has been successfully registered with the server, then the request will be completed and the RebootMethodsWatcherRegister channel will be left open (though a client is free to close it at this time).
If there is an error in registering the watcher, then the RebootMethodsWatcherRegister channel will be closed without completing the request.
The provided watcher channel will be used at most once to notify the
watcher of an impending reboot and allow it the chance to respond.
Watchers can unregister by closing their RebootWatcher channel.
Trait Implementations§
Source§impl From<Channel> for RebootMethodsWatcherRegisterSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for RebootMethodsWatcherRegisterSynchronousProxy
Source§impl From<RebootMethodsWatcherRegisterSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<RebootMethodsWatcherRegisterSynchronousProxy> for NullableHandle
Source§fn from(value: RebootMethodsWatcherRegisterSynchronousProxy) -> Self
fn from(value: RebootMethodsWatcherRegisterSynchronousProxy) -> Self
Source§impl FromClient for RebootMethodsWatcherRegisterSynchronousProxy
Available on Fuchsia only.
impl FromClient for RebootMethodsWatcherRegisterSynchronousProxy
Source§type Protocol = RebootMethodsWatcherRegisterMarker
type Protocol = RebootMethodsWatcherRegisterMarker
Source§fn from_client(value: ClientEnd<RebootMethodsWatcherRegisterMarker>) -> Self
fn from_client(value: ClientEnd<RebootMethodsWatcherRegisterMarker>) -> Self
Source§impl SynchronousProxy for RebootMethodsWatcherRegisterSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for RebootMethodsWatcherRegisterSynchronousProxy
Source§type Proxy = RebootMethodsWatcherRegisterProxy
type Proxy = RebootMethodsWatcherRegisterProxy
Source§type Protocol = RebootMethodsWatcherRegisterMarker
type Protocol = RebootMethodsWatcherRegisterMarker
Proxy controls.