pub struct ContainerPowerControllerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ContainerPowerControllerSynchronousProxy
impl ContainerPowerControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ContainerPowerControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ContainerPowerControllerEvent, 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 wake(
&self,
payload: ContainerPowerControllerWakeRequest,
) -> Result<(), Error>
pub fn wake( &self, payload: ContainerPowerControllerWakeRequest, ) -> Result<(), Error>
This requests that the container wakes up to service requests.
Sourcepub fn register_wake_watcher(
&self,
payload: ContainerPowerControllerRegisterWakeWatcherRequest,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_wake_watcher( &self, payload: ContainerPowerControllerRegisterWakeWatcherRequest, ___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 SynchronousProxy for ContainerPowerControllerSynchronousProxy
impl SynchronousProxy for ContainerPowerControllerSynchronousProxy
Source§type Proxy = ContainerPowerControllerProxy
type Proxy = ContainerPowerControllerProxy
The async proxy for the same protocol.
Source§type Protocol = ContainerPowerControllerMarker
type Protocol = ContainerPowerControllerMarker
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 ContainerPowerControllerSynchronousProxy
impl RefUnwindSafe for ContainerPowerControllerSynchronousProxy
impl Send for ContainerPowerControllerSynchronousProxy
impl Sync for ContainerPowerControllerSynchronousProxy
impl Unpin for ContainerPowerControllerSynchronousProxy
impl UnwindSafe for ContainerPowerControllerSynchronousProxy
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