pub struct ActivityGovernorListenerProxy { /* private fields */ }
Implementations§
Source§impl ActivityGovernorListenerProxy
impl ActivityGovernorListenerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.power.system/ActivityGovernorListener.
Sourcepub fn take_event_stream(&self) -> ActivityGovernorListenerEventStream
pub fn take_event_stream(&self) -> ActivityGovernorListenerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn on_resume(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn on_resume(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn on_suspend_started( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn on_suspend_fail( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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 ActivityGovernorListenerProxyInterface for ActivityGovernorListenerProxy
impl ActivityGovernorListenerProxyInterface for ActivityGovernorListenerProxy
type OnResumeResponseFut = QueryResponseFut<()>
type OnSuspendStartedResponseFut = QueryResponseFut<()>
type OnSuspendFailResponseFut = QueryResponseFut<()>
fn on_resume(&self) -> Self::OnResumeResponseFut
fn on_suspend_started(&self) -> Self::OnSuspendStartedResponseFut
fn on_suspend_fail(&self) -> Self::OnSuspendFailResponseFut
Source§impl Clone for ActivityGovernorListenerProxy
impl Clone for ActivityGovernorListenerProxy
Source§fn clone(&self) -> ActivityGovernorListenerProxy
fn clone(&self) -> ActivityGovernorListenerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Proxy for ActivityGovernorListenerProxy
impl Proxy for ActivityGovernorListenerProxy
Source§type Protocol = ActivityGovernorListenerMarker
type Protocol = ActivityGovernorListenerMarker
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 ActivityGovernorListenerProxy
impl !RefUnwindSafe for ActivityGovernorListenerProxy
impl Send for ActivityGovernorListenerProxy
impl Sync for ActivityGovernorListenerProxy
impl Unpin for ActivityGovernorListenerProxy
impl !UnwindSafe for ActivityGovernorListenerProxy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)