pub enum SystemStateTransitionRequest {
GetTerminationSystemState {
responder: SystemStateTransitionGetTerminationSystemStateResponder,
},
GetMexecZbis {
responder: SystemStateTransitionGetMexecZbisResponder,
},
}
Expand description
Provides protocol for fetching relevant information during a system state transition.
Variants§
GetTerminationSystemState
Gets the termination state.
Fields
GetMexecZbis
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.
Fields
§
responder: SystemStateTransitionGetMexecZbisResponder
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemStateTransitionRequest
impl !RefUnwindSafe for SystemStateTransitionRequest
impl Send for SystemStateTransitionRequest
impl Sync for SystemStateTransitionRequest
impl Unpin for SystemStateTransitionRequest
impl !UnwindSafe for SystemStateTransitionRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more