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: Time) -> Result<AdminEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> 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: Time
) -> Result<AdminPowerFullyOnResult, Error>
pub fn power_fully_on( &self, ___deadline: Time ) -> Result<AdminPowerFullyOnResult, Error>
Asks the device to enter a fully on state.
sourcepub fn reboot(
&self,
reason: RebootReason,
___deadline: Time
) -> Result<AdminRebootResult, Error>
pub fn reboot( &self, reason: RebootReason, ___deadline: Time ) -> Result<AdminRebootResult, Error>
Asks the device to reboot.
sourcepub fn reboot_to_bootloader(
&self,
___deadline: Time
) -> Result<AdminRebootToBootloaderResult, Error>
pub fn reboot_to_bootloader( &self, ___deadline: Time ) -> Result<AdminRebootToBootloaderResult, Error>
Asks the device to reboot into the bootloader.
sourcepub fn reboot_to_recovery(
&self,
___deadline: Time
) -> Result<AdminRebootToRecoveryResult, Error>
pub fn reboot_to_recovery( &self, ___deadline: Time ) -> Result<AdminRebootToRecoveryResult, Error>
Asks the device to reboot into the recovery partition.
sourcepub fn poweroff(&self, ___deadline: Time) -> Result<AdminPoweroffResult, Error>
pub fn poweroff(&self, ___deadline: Time) -> Result<AdminPoweroffResult, Error>
Asks all devices to enter a powered off state.
sourcepub fn mexec(
&self,
kernel_zbi: Vmo,
data_zbi: Vmo,
___deadline: Time
) -> Result<AdminMexecResult, Error>
pub fn mexec( &self, kernel_zbi: Vmo, data_zbi: Vmo, ___deadline: Time ) -> 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: Time
) -> Result<AdminSuspendToRamResult, Error>
pub fn suspend_to_ram( &self, ___deadline: Time ) -> 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
§type Proxy = AdminProxy
type Proxy = AdminProxy
§type Protocol = AdminMarker
type Protocol = AdminMarker
Proxy
controls.