pub struct RebootControllerSynchronousProxy { /* private fields */ }
Implementations§
source§impl RebootControllerSynchronousProxy
impl RebootControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<RebootControllerEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<RebootControllerEvent, 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 unblock(&self) -> Result<(), Error>
pub fn unblock(&self) -> Result<(), Error>
Informs the update attempt that it may reboot when ready, unblocking a pending reboot if it is already ready to reboot.
If a controller is dropped without sending this request or
[RebootController.Detach
], the update attempt reclaims control of the
timing of the reboot, behaving as if the update attempt was not given a
[RebootController
] at all.