pub struct TreeSynchronousProxy { /* private fields */ }
Implementations§
Source§impl TreeSynchronousProxy
impl TreeSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TreeEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TreeEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_content(
&self,
___deadline: MonotonicInstant,
) -> Result<TreeContent, Error>
pub fn get_content( &self, ___deadline: MonotonicInstant, ) -> Result<TreeContent, Error>
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 Debug for TreeSynchronousProxy
impl Debug for TreeSynchronousProxy
Source§impl SynchronousProxy for TreeSynchronousProxy
impl SynchronousProxy for TreeSynchronousProxy
Source§type Protocol = TreeMarker
type Protocol = TreeMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for TreeSynchronousProxy
impl RefUnwindSafe for TreeSynchronousProxy
impl Send for TreeSynchronousProxy
impl Sync for TreeSynchronousProxy
impl Unpin for TreeSynchronousProxy
impl UnwindSafe for TreeSynchronousProxy
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