pub struct DataProviderProxy { /* private fields */ }
Implementations§
Source§impl DataProviderProxy
impl DataProviderProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.feedback/DataProvider.
Sourcepub fn take_event_stream(&self) -> DataProviderEventStream
pub fn take_event_stream(&self) -> DataProviderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_snapshot(
&self,
params: GetSnapshotParameters,
) -> QueryResponseFut<Snapshot, DefaultFuchsiaResourceDialect>
pub fn get_snapshot( &self, params: GetSnapshotParameters, ) -> QueryResponseFut<Snapshot, DefaultFuchsiaResourceDialect>
Returns a snapshot of the device’s state.
snapshot
may be empty if there was an issue generating the snapshot.
Sourcepub fn get_screenshot(
&self,
encoding: ImageEncoding,
) -> QueryResponseFut<Option<Box<Screenshot>>, DefaultFuchsiaResourceDialect>
pub fn get_screenshot( &self, encoding: ImageEncoding, ) -> QueryResponseFut<Option<Box<Screenshot>>, DefaultFuchsiaResourceDialect>
Returns an image of the current view encoded in the provided encoding
.
screenshot
may be null if the encoding is not supported, the device does not have a
display, or there is not enough memory to allocate the screenshot image.
The screenshot is provided separately from the snapshot as callers might want to block on this call before changing the view while collecting a snapshot in the background is fine. There are also a lot of clients that are not interested in the screenshot.
Sourcepub fn get_annotations(
&self,
params: &GetAnnotationsParameters,
) -> QueryResponseFut<Annotations, DefaultFuchsiaResourceDialect>
pub fn get_annotations( &self, params: &GetAnnotationsParameters, ) -> QueryResponseFut<Annotations, DefaultFuchsiaResourceDialect>
Returns a set of annotations about the device’s state.
annotations
may be empty if there was an issue collecting them.
These are the same annotations as provided through GetSnapshot() - some clients only want the annotations while others want both the annotations and the snapshot and generating the snapshot can take significantly more time than collecting the annotations, e.g., logs are only part of the snapshot and not part of the annotations and can take some time.
Trait Implementations§
Source§impl Clone for DataProviderProxy
impl Clone for DataProviderProxy
Source§fn clone(&self) -> DataProviderProxy
fn clone(&self) -> DataProviderProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl DataProviderProxyInterface for DataProviderProxy
impl DataProviderProxyInterface for DataProviderProxy
type GetSnapshotResponseFut = QueryResponseFut<Snapshot>
type GetScreenshotResponseFut = QueryResponseFut<Option<Box<Screenshot>>>
type GetAnnotationsResponseFut = QueryResponseFut<Annotations>
fn get_snapshot( &self, params: GetSnapshotParameters, ) -> Self::GetSnapshotResponseFut
fn get_screenshot( &self, encoding: ImageEncoding, ) -> Self::GetScreenshotResponseFut
fn get_annotations( &self, params: &GetAnnotationsParameters, ) -> Self::GetAnnotationsResponseFut
Source§impl Debug for DataProviderProxy
impl Debug for DataProviderProxy
Source§impl Proxy for DataProviderProxy
impl Proxy for DataProviderProxy
Source§type Protocol = DataProviderMarker
type Protocol = DataProviderMarker
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 DataProviderProxy
impl !RefUnwindSafe for DataProviderProxy
impl Send for DataProviderProxy
impl Sync for DataProviderProxy
impl Unpin for DataProviderProxy
impl !UnwindSafe for DataProviderProxy
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
)