pub struct SessionContextSynchronousProxy { /* private fields */ }
Implementations§
source§impl SessionContextSynchronousProxy
impl SessionContextSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<SessionContextEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<SessionContextEvent, 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 restart_due_to_critical_failure(&self) -> Result<(), Error>
pub fn restart_due_to_critical_failure(&self) -> Result<(), Error>
Restarts the session due to an unrecoverable error. This may reboot the device.