pub struct InspectSinkProxy { /* private fields */ }
Implementations§
Source§impl InspectSinkProxy
impl InspectSinkProxy
Sourcepub fn take_event_stream(&self) -> InspectSinkEventStream
pub fn take_event_stream(&self) -> InspectSinkEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn publish(&self, payload: InspectSinkPublishRequest) -> Result<(), Error>
pub fn publish(&self, payload: InspectSinkPublishRequest) -> Result<(), Error>
Publishes a handle to the fuchsia.inspect.Tree
protocol that the
server can use to read Inspect data, including lazy nodes.
Sourcepub fn escrow(&self, payload: InspectSinkEscrowRequest) -> Result<(), Error>
pub fn escrow(&self, payload: InspectSinkEscrowRequest) -> Result<(), Error>
Instructs the server to store the VMO provided to make its data available to Inspect readers, even when the component that published this VMO isn’t running.
This is meant to be used when integrating with Component Framework’s Escrow APIs to enable stopping when IDLE but still ensure that some useful diagnostics information is available.
The client must provide a token
that will be used as a unique
identifier to this VMO by the the server. This token is an event pair, a
client must provide one end of this event pair and hold to the other end
(or escrow the handle it using Component APIs). If the server sees a
PEER_CLOSED on the handle it received, it will drop the VMO associated
with this token.
If any of the required arguments isn’t passed the connection will be closed.
To learn more about stopping IDLE components, please refer to: https://fuchsia.dev/fuchsia-src/development/components/stop_idle
Sourcepub fn fetch_escrow(
&self,
payload: InspectSinkFetchEscrowRequest,
) -> QueryResponseFut<InspectSinkFetchEscrowResponse, DefaultFuchsiaResourceDialect>
pub fn fetch_escrow( &self, payload: InspectSinkFetchEscrowRequest, ) -> QueryResponseFut<InspectSinkFetchEscrowResponse, DefaultFuchsiaResourceDialect>
Instructs the server to return (and stop tracking) the VMO associated with the given token.
This is meant to be used when a component restarts and wants to fetch Inspect data that it escrowed.
To learn more about stopping IDLE components, please refer to: https://fuchsia.dev/fuchsia-src/development/components/stop_idle
Trait Implementations§
Source§impl Clone for InspectSinkProxy
impl Clone for InspectSinkProxy
Source§fn clone(&self) -> InspectSinkProxy
fn clone(&self) -> InspectSinkProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InspectSinkProxy
impl Debug for InspectSinkProxy
Source§impl InspectSinkProxyInterface for InspectSinkProxy
impl InspectSinkProxyInterface for InspectSinkProxy
type FetchEscrowResponseFut = QueryResponseFut<InspectSinkFetchEscrowResponse>
fn publish(&self, payload: InspectSinkPublishRequest) -> Result<(), Error>
fn escrow(&self, payload: InspectSinkEscrowRequest) -> Result<(), Error>
fn fetch_escrow( &self, payload: InspectSinkFetchEscrowRequest, ) -> Self::FetchEscrowResponseFut
Source§impl Proxy for InspectSinkProxy
impl Proxy for InspectSinkProxy
Source§type Protocol = InspectSinkMarker
type Protocol = InspectSinkMarker
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 InspectSinkProxy
impl !RefUnwindSafe for InspectSinkProxy
impl Send for InspectSinkProxy
impl Sync for InspectSinkProxy
impl Unpin for InspectSinkProxy
impl !UnwindSafe for InspectSinkProxy
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
)