pub struct TreeProxy { /* private fields */ }
Implementations§
Source§impl TreeProxy
impl TreeProxy
Sourcepub fn take_event_stream(&self) -> TreeEventStream
pub fn take_event_stream(&self) -> TreeEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_content(
&self,
) -> QueryResponseFut<TreeContent, DefaultFuchsiaResourceDialect>
pub fn get_content( &self, ) -> QueryResponseFut<TreeContent, DefaultFuchsiaResourceDialect>
Get the content for the Inspect VMO backing this tree.
So long as the Tree connection is still maintained, the contents of the tree are guaranteed to still be live. Once the connection is lost, the serving component is free to clear the contents of returned shared buffers.
Serving components may return different buffers to GetContent requests for the same Tree.
Sourcepub fn list_child_names(
&self,
tree_iterator: ServerEnd<TreeNameIteratorMarker>,
) -> Result<(), Error>
pub fn list_child_names( &self, tree_iterator: ServerEnd<TreeNameIteratorMarker>, ) -> Result<(), Error>
Iterate over the names of Trees that are children of this Tree.
The underlying list of children may change in between calls to ListChildNames and OpenChild.
Sourcepub fn open_child(
&self,
child_name: &str,
tree: ServerEnd<TreeMarker>,
) -> Result<(), Error>
pub fn open_child( &self, child_name: &str, tree: ServerEnd<TreeMarker>, ) -> Result<(), Error>
Open a child Tree by name.
If the child cannot be opened, the given request is closed.
Trait Implementations§
Source§impl Proxy for TreeProxy
impl Proxy for TreeProxy
Source§type Protocol = TreeMarker
type Protocol = TreeMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Source§impl TreeProxyInterface for TreeProxy
impl TreeProxyInterface for TreeProxy
type GetContentResponseFut = QueryResponseFut<TreeContent>
fn get_content(&self) -> Self::GetContentResponseFut
fn list_child_names( &self, tree_iterator: ServerEnd<TreeNameIteratorMarker>, ) -> Result<(), Error>
fn open_child( &self, child_name: &str, tree: ServerEnd<TreeMarker>, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for TreeProxy
impl !RefUnwindSafe for TreeProxy
impl Send for TreeProxy
impl Sync for TreeProxy
impl Unpin for TreeProxy
impl !UnwindSafe for TreeProxy
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ProxyHasClient for Twhere
T: Proxy,
impl<T> ProxyHasClient for Twhere
T: Proxy,
§fn client(&self) -> Result<ZirconClient, Infallible>
fn client(&self) -> Result<ZirconClient, Infallible>
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.