pub struct BlockingListenerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl BlockingListenerSynchronousProxy
impl BlockingListenerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<BlockingListenerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<BlockingListenerEvent, 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 on_resume_started(
&self,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn on_resume_started( &self, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Called by the ListenerRegistry
to inform the component
that the system has started resuming.
The callee SHOULD minimize the time it (the callee) takes to reply, since other power operations may block until the callee replies.
The caller SHOULD interpret an UNKNOWN_METHOD
response as an
indication that the callee has no work that would block the
resume process.
Sourcepub fn on_suspend_failed(
&self,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn on_suspend_failed( &self, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Called by the ListenerRegistry
to inform the component
that a suspend attempt failed.
The callee SHOULD minimize the time it (callee) takes to reply, since later suspends may block until the callee replies.
The caller SHOULD interpret an UNKNOWN_METHOD
response as an
indication that the callee has no work that would block future
power-state changes.
Trait Implementations§
Source§impl SynchronousProxy for BlockingListenerSynchronousProxy
impl SynchronousProxy for BlockingListenerSynchronousProxy
Source§type Proxy = BlockingListenerProxy
type Proxy = BlockingListenerProxy
Source§type Protocol = BlockingListenerMarker
type Protocol = BlockingListenerMarker
Proxy
controls.