pub struct ManagerProxy { /* private fields */ }
Implementations§
source§impl ManagerProxy
impl ManagerProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.starnix.runner/Manager.
sourcepub fn take_event_stream(&self) -> ManagerEventStream
pub fn take_event_stream(&self) -> ManagerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn suspend(&self, payload: &ManagerSuspendRequest) -> QueryResponseFut<()>
pub fn suspend(&self, payload: &ManagerSuspendRequest) -> QueryResponseFut<()>
Suspends all the running Starnix kernels. Returns after all processes have been suspended.
sourcepub fn resume(&self, payload: &ManagerResumeRequest) -> Result<(), Error>
pub fn resume(&self, payload: &ManagerResumeRequest) -> Result<(), Error>
Resumes all suspended Starnix kernels.
sourcepub fn suspend_container(
&self,
payload: ManagerSuspendContainerRequest,
) -> QueryResponseFut<ManagerSuspendContainerResult>
pub fn suspend_container( &self, payload: ManagerSuspendContainerRequest, ) -> QueryResponseFut<ManagerSuspendContainerResult>
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
.
Trait Implementations§
source§impl Clone for ManagerProxy
impl Clone for ManagerProxy
source§fn clone(&self) -> ManagerProxy
fn clone(&self) -> ManagerProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ManagerProxy
impl Debug for ManagerProxy
source§impl ManagerProxyInterface for ManagerProxy
impl ManagerProxyInterface for ManagerProxy
type SuspendResponseFut = QueryResponseFut<()>
fn suspend(&self, payload: &ManagerSuspendRequest) -> Self::SuspendResponseFut
fn resume(&self, payload: &ManagerResumeRequest) -> Result<(), Error>
type SuspendContainerResponseFut = QueryResponseFut<Result<ManagerSuspendContainerResponse, SuspendError>>
fn suspend_container( &self, payload: ManagerSuspendContainerRequest, ) -> Self::SuspendContainerResponseFut
fn proxy_wake_channel( &self, payload: ManagerProxyWakeChannelRequest, ) -> Result<(), Error>
source§impl Proxy for ManagerProxy
impl Proxy for ManagerProxy
§type Protocol = ManagerMarker
type Protocol = ManagerMarker
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for ManagerProxy
impl !RefUnwindSafe for ManagerProxy
impl Send for ManagerProxy
impl Sync for ManagerProxy
impl Unpin for ManagerProxy
impl !UnwindSafe for ManagerProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)