pub enum SystemStateTransitionRequest {
GetTerminationSystemState {
responder: SystemStateTransitionGetTerminationSystemStateResponder,
},
GetMexecZbis {
responder: SystemStateTransitionGetMexecZbisResponder,
},
}
Expand description
Provides protocol for fetching relevant information during a system state transition.
Variants§
GetTerminationSystemState
Fields
Gets the termination state.
GetMexecZbis
Fields
§
responder: SystemStateTransitionGetMexecZbisResponder
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.
Implementations§
source§impl SystemStateTransitionRequest
impl SystemStateTransitionRequest
pub fn into_get_termination_system_state( self ) -> Option<SystemStateTransitionGetTerminationSystemStateResponder>
pub fn into_get_mexec_zbis( self ) -> Option<SystemStateTransitionGetMexecZbisResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL