pub struct SystemStateTransitionSynchronousProxy { /* private fields */ }
Implementations§
source§impl SystemStateTransitionSynchronousProxy
impl SystemStateTransitionSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<SystemStateTransitionEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<SystemStateTransitionEvent, 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 get_termination_system_state(
&self,
___deadline: Time
) -> Result<SystemPowerState, Error>
pub fn get_termination_system_state( &self, ___deadline: Time ) -> Result<SystemPowerState, Error>
Gets the termination state.
sourcepub fn get_mexec_zbis(
&self,
___deadline: Time
) -> Result<SystemStateTransitionGetMexecZbisResult, Error>
pub fn get_mexec_zbis( &self, ___deadline: Time ) -> Result<SystemStateTransitionGetMexecZbisResult, Error>
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.