pub struct BlockingListenerProxy { /* private fields */ }
Implementations§
Source§impl BlockingListenerProxy
impl BlockingListenerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.session.power/BlockingListener.
Sourcepub fn take_event_stream(&self) -> BlockingListenerEventStream
pub fn take_event_stream(&self) -> BlockingListenerEventStream
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_started(
&self,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn on_resume_started( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn on_suspend_failed( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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 BlockingListenerProxyInterface for BlockingListenerProxy
impl BlockingListenerProxyInterface for BlockingListenerProxy
type OnResumeStartedResponseFut = QueryResponseFut<()>
type OnSuspendFailedResponseFut = QueryResponseFut<()>
fn on_resume_started(&self) -> Self::OnResumeStartedResponseFut
fn on_suspend_failed(&self) -> Self::OnSuspendFailedResponseFut
Source§impl Clone for BlockingListenerProxy
impl Clone for BlockingListenerProxy
Source§fn clone(&self) -> BlockingListenerProxy
fn clone(&self) -> BlockingListenerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BlockingListenerProxy
impl Debug for BlockingListenerProxy
Source§impl Proxy for BlockingListenerProxy
impl Proxy for BlockingListenerProxy
Source§type Protocol = BlockingListenerMarker
type Protocol = BlockingListenerMarker
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 BlockingListenerProxy
impl !RefUnwindSafe for BlockingListenerProxy
impl Send for BlockingListenerProxy
impl Sync for BlockingListenerProxy
impl Unpin for BlockingListenerProxy
impl !UnwindSafe for BlockingListenerProxy
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
)