Struct fidl_fuchsia_hardware_power_statecontrol::RebootMethodsWatcherRegisterSynchronousProxy
source · 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: Time
) -> Result<RebootMethodsWatcherRegisterEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> 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.
sourcepub fn register_with_ack(
&self,
watcher: ClientEnd<RebootMethodsWatcherMarker>,
___deadline: Time
) -> Result<(), Error>
pub fn register_with_ack( &self, watcher: ClientEnd<RebootMethodsWatcherMarker>, ___deadline: Time ) -> 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.
Trait Implementations§
source§impl SynchronousProxy for RebootMethodsWatcherRegisterSynchronousProxy
impl SynchronousProxy for RebootMethodsWatcherRegisterSynchronousProxy
§type Proxy = RebootMethodsWatcherRegisterProxy
type Proxy = RebootMethodsWatcherRegisterProxy
§type Protocol = RebootMethodsWatcherRegisterMarker
type Protocol = RebootMethodsWatcherRegisterMarker
Proxy
controls.