pub struct ActivityGovernorListenerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ActivityGovernorListenerSynchronousProxy
impl ActivityGovernorListenerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ActivityGovernorListenerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ActivityGovernorListenerEvent, 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(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
pub fn on_resume(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
Called when the activity governor detects a system resume.
This is only called when the wakeup reason returned by the platform requires a full system resume. The server is expected to respond once it has performed the operations required to keep the system awake, if needed.
Sourcepub fn on_suspend_started(
&self,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn on_suspend_started( &self, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Called before the activity governor initiates a system suspension.
The server is expected to respond once it has performed the operations it needs to prepare itself for suspend, if any.
Sourcepub fn on_suspend_fail(
&self,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn on_suspend_fail( &self, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Called when the activity governor detects a suspend failure.
The server is expected to respond to this notification. The activity governor will not attempt to suspend again until it receives the respond.
Trait Implementations§
Source§impl SynchronousProxy for ActivityGovernorListenerSynchronousProxy
impl SynchronousProxy for ActivityGovernorListenerSynchronousProxy
Source§type Proxy = ActivityGovernorListenerProxy
type Proxy = ActivityGovernorListenerProxy
Source§type Protocol = ActivityGovernorListenerMarker
type Protocol = ActivityGovernorListenerMarker
Proxy
controls.