pub struct SystemStateTransitionProxy { /* private fields */ }
Implementations§
source§impl SystemStateTransitionProxy
impl SystemStateTransitionProxy
sourcepub fn take_event_stream(&self) -> SystemStateTransitionEventStream
pub fn take_event_stream(&self) -> SystemStateTransitionEventStream
Get a Stream of events from the remote end of the SystemStateTransition protocol
Panics
Panics if the event stream was already taken.
sourcepub fn get_termination_system_state(&self) -> QueryResponseFut<SystemPowerState>
pub fn get_termination_system_state(&self) -> QueryResponseFut<SystemPowerState>
Gets the termination state.
sourcepub fn get_mexec_zbis(
&self
) -> QueryResponseFut<SystemStateTransitionGetMexecZbisResult>
pub fn get_mexec_zbis( &self ) -> QueryResponseFut<SystemStateTransitionGetMexecZbisResult>
When the system termination state is MEXEC, in the course of shutting down, driver_manager will perform an mexec itself after suspending all drivers. This method allows driver manager to fetch the kernel and data ZBIs to be passed to zx_system_mexec().
This method only should only be invoked in the case MEXEC shutdown.
It is expected that the ZBI items specified by
zx_system_mexec_payload_get()
have not yet been appended to the
provided data ZBI.
Returns
- ZX_ERR_BAD_STATE: The termination system state is not set to MEXEC.
Trait Implementations§
source§impl Clone for SystemStateTransitionProxy
impl Clone for SystemStateTransitionProxy
source§fn clone(&self) -> SystemStateTransitionProxy
fn clone(&self) -> SystemStateTransitionProxy
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 SystemStateTransitionProxy
impl Debug for SystemStateTransitionProxy
source§impl Proxy for SystemStateTransitionProxy
impl Proxy for SystemStateTransitionProxy
§type Protocol = SystemStateTransitionMarker
type Protocol = SystemStateTransitionMarker
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