pub struct SessionContextProxy { /* private fields */ }
Implementations§
source§impl SessionContextProxy
impl SessionContextProxy
sourcepub fn take_event_stream(&self) -> SessionContextEventStream
pub fn take_event_stream(&self) -> SessionContextEventStream
Get a Stream of events from the remote end of the SessionContext protocol
Panics
Panics if the event stream was already taken.
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.
Trait Implementations§
source§impl Clone for SessionContextProxy
impl Clone for SessionContextProxy
source§fn clone(&self) -> SessionContextProxy
fn clone(&self) -> SessionContextProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SessionContextProxy
impl Debug for SessionContextProxy
source§impl Proxy for SessionContextProxy
impl Proxy for SessionContextProxy
§type Protocol = SessionContextMarker
type Protocol = SessionContextMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more