pub struct ManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ManagerSynchronousProxy
impl ManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ManagerEvent, 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 suspend_container(
&self,
payload: ManagerSuspendContainerRequest,
___deadline: MonotonicInstant,
) -> Result<ManagerSuspendContainerResult, Error>
pub fn suspend_container( &self, payload: ManagerSuspendContainerRequest, ___deadline: MonotonicInstant, ) -> Result<ManagerSuspendContainerResult, Error>
Suspends the container running in job
.
The call will return successfully when wake_event
has been signaled. Returns
an error if wake_locks
is signaled at the end of suspension, or an error is
encountered when suspending the container’s processes.
Sourcepub fn proxy_wake_channel(
&self,
payload: ManagerProxyWakeChannelRequest,
) -> Result<(), Error>
pub fn proxy_wake_channel( &self, payload: ManagerProxyWakeChannelRequest, ) -> Result<(), Error>
Creates a pass-through proxy that forwards messages between the container_channel
and the
remote_channel
.
If any messages arrive on remote_channel
while the container is suspended via
SuspendContainer
, the container will be resumed and resume_event
will be signaled with
ZX_EVENT_SIGNALED
. Any suspend call that is made while that signal is present on
resume_event
will wake immediately. The container is responsible for clearing
ZX_EVENT_SIGNALED
.
Sourcepub fn register_wake_watcher(
&self,
payload: ManagerRegisterWakeWatcherRequest,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_wake_watcher( &self, payload: ManagerRegisterWakeWatcherRequest, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Registers an eventpair that will be signaled when the container is suspended or resumed. The signals are ASLEEP(USER_1) and AWAKE(USER_0).
The kernel returns AWAKE upon initial registration of the eventpair.
Trait Implementations§
Source§impl Debug for ManagerSynchronousProxy
impl Debug for ManagerSynchronousProxy
Source§impl SynchronousProxy for ManagerSynchronousProxy
impl SynchronousProxy for ManagerSynchronousProxy
Source§type Proxy = ManagerProxy
type Proxy = ManagerProxy
Source§type Protocol = ManagerMarker
type Protocol = ManagerMarker
Proxy
controls.