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: MonotonicInstant,
) -> Result<SystemStateTransitionEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<SystemPowerState, Error>
pub fn get_termination_system_state( &self, ___deadline: MonotonicInstant, ) -> Result<SystemPowerState, Error>
Gets the termination state.
Sourcepub fn get_mexec_zbis(
&self,
___deadline: MonotonicInstant,
) -> Result<SystemStateTransitionGetMexecZbisResult, Error>
pub fn get_mexec_zbis( &self, ___deadline: MonotonicInstant, ) -> 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.
Trait Implementations§
Source§impl SynchronousProxy for SystemStateTransitionSynchronousProxy
impl SynchronousProxy for SystemStateTransitionSynchronousProxy
Source§type Proxy = SystemStateTransitionProxy
type Proxy = SystemStateTransitionProxy
The async proxy for the same protocol.
Source§type Protocol = SystemStateTransitionMarker
type Protocol = SystemStateTransitionMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for SystemStateTransitionSynchronousProxy
impl RefUnwindSafe for SystemStateTransitionSynchronousProxy
impl Send for SystemStateTransitionSynchronousProxy
impl Sync for SystemStateTransitionSynchronousProxy
impl Unpin for SystemStateTransitionSynchronousProxy
impl UnwindSafe for SystemStateTransitionSynchronousProxy
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