pub struct AdminSynchronousProxy { /* private fields */ }
Implementations§
Source§impl AdminSynchronousProxy
impl AdminSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<AdminEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<AdminEvent, 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 power_fully_on(
&self,
___deadline: MonotonicInstant,
) -> Result<AdminPowerFullyOnResult, Error>
pub fn power_fully_on( &self, ___deadline: MonotonicInstant, ) -> Result<AdminPowerFullyOnResult, Error>
Asks the device to enter a fully on state.
Sourcepub fn reboot(
&self,
reason: RebootReason,
___deadline: MonotonicInstant,
) -> Result<AdminRebootResult, Error>
pub fn reboot( &self, reason: RebootReason, ___deadline: MonotonicInstant, ) -> Result<AdminRebootResult, Error>
Asks the device to reboot.
Sourcepub fn reboot_to_bootloader(
&self,
___deadline: MonotonicInstant,
) -> Result<AdminRebootToBootloaderResult, Error>
pub fn reboot_to_bootloader( &self, ___deadline: MonotonicInstant, ) -> Result<AdminRebootToBootloaderResult, Error>
Asks the device to reboot into the bootloader.
Sourcepub fn reboot_to_recovery(
&self,
___deadline: MonotonicInstant,
) -> Result<AdminRebootToRecoveryResult, Error>
pub fn reboot_to_recovery( &self, ___deadline: MonotonicInstant, ) -> Result<AdminRebootToRecoveryResult, Error>
Asks the device to reboot into the recovery partition.
Sourcepub fn poweroff(
&self,
___deadline: MonotonicInstant,
) -> Result<AdminPoweroffResult, Error>
pub fn poweroff( &self, ___deadline: MonotonicInstant, ) -> Result<AdminPoweroffResult, Error>
Asks all devices to enter a powered off state.
Sourcepub fn mexec(
&self,
kernel_zbi: Vmo,
data_zbi: Vmo,
___deadline: MonotonicInstant,
) -> Result<AdminMexecResult, Error>
pub fn mexec( &self, kernel_zbi: Vmo, data_zbi: Vmo, ___deadline: MonotonicInstant, ) -> Result<AdminMexecResult, Error>
Performs a kernel mexec.
It is expected that the ZBI items specified by
zx_system_mexec_payload_get()
have not yet been appended to the
provided data ZBI.
Sourcepub fn suspend_to_ram(
&self,
___deadline: MonotonicInstant,
) -> Result<AdminSuspendToRamResult, Error>
pub fn suspend_to_ram( &self, ___deadline: MonotonicInstant, ) -> Result<AdminSuspendToRamResult, Error>
Asks the device to enter the suspend to RAM (S3) power state. Currently only supported on x64. If a system state transition is already in progress then ZX_ERR_ALREADY_EXISTS is returned. If the device fails to reach the suspend power state then ZX_ERR_INTERNAL is returned. If the device successfully suspends, ZX_OK is returned when the device resumes.
Trait Implementations§
Source§impl Debug for AdminSynchronousProxy
impl Debug for AdminSynchronousProxy
Source§impl SynchronousProxy for AdminSynchronousProxy
impl SynchronousProxy for AdminSynchronousProxy
Source§type Proxy = AdminProxy
type Proxy = AdminProxy
Source§type Protocol = AdminMarker
type Protocol = AdminMarker
Proxy
controls.