pub struct DictionarySynchronousProxy { /* private fields */ }Implementations§
Source§impl DictionarySynchronousProxy
impl DictionarySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DictionaryEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DictionaryEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn clone(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>
Sourcepub fn insert(
&self,
key: &str,
capability: CapabilityDeprecated,
) -> Result<(), Error>
pub fn insert( &self, key: &str, capability: CapabilityDeprecated, ) -> Result<(), Error>
Inserts a new Capability into this Dictionary under the name key.
Overwrites any existing entry.
The server end associated with the provided client end must be owned by component manager.
Sourcepub fn get(
&self,
key: &str,
___deadline: MonotonicInstant,
) -> Result<Option<Box<CapabilityDeprecated>>, Error>
pub fn get( &self, key: &str, ___deadline: MonotonicInstant, ) -> Result<Option<Box<CapabilityDeprecated>>, Error>
Returns a clone of the Capability named key in this dictionary, if
that capability both exists and can be cloned.
Sourcepub fn remove(
&self,
key: &str,
___deadline: MonotonicInstant,
) -> Result<Option<Box<CapabilityDeprecated>>, Error>
pub fn remove( &self, key: &str, ___deadline: MonotonicInstant, ) -> Result<Option<Box<CapabilityDeprecated>>, Error>
Removes the Capability named key from this dictionary and returns
it, if that capability exists.
Sourcepub fn iterate_keys(
&self,
key_iterator: ServerEnd<DictionaryKeyIteratorMarker>,
) -> Result<(), Error>
pub fn iterate_keys( &self, key_iterator: ServerEnd<DictionaryKeyIteratorMarker>, ) -> Result<(), Error>
Opens an iterator which can be used to iterate over the keys of this dictionary.
Sourcepub fn legacy_export(
&self,
___deadline: MonotonicInstant,
) -> Result<DictionaryRef, Error>
pub fn legacy_export( &self, ___deadline: MonotonicInstant, ) -> Result<DictionaryRef, Error>
Exports this dictionary for use in a
fuchsia.component.Realm/CreateChild call.
Trait Implementations§
Source§impl Debug for DictionarySynchronousProxy
impl Debug for DictionarySynchronousProxy
Source§impl From<Channel> for DictionarySynchronousProxy
Available on Fuchsia only.
impl From<Channel> for DictionarySynchronousProxy
Available on Fuchsia only.
Source§impl From<DictionarySynchronousProxy> for Handle
Available on Fuchsia only.
impl From<DictionarySynchronousProxy> for Handle
Available on Fuchsia only.
Source§fn from(value: DictionarySynchronousProxy) -> Self
fn from(value: DictionarySynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for DictionarySynchronousProxy
Available on Fuchsia only.
impl FromClient for DictionarySynchronousProxy
Available on Fuchsia only.
Source§type Protocol = DictionaryMarker
type Protocol = DictionaryMarker
The protocol.
Source§fn from_client(value: ClientEnd<DictionaryMarker>) -> Self
fn from_client(value: ClientEnd<DictionaryMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for DictionarySynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for DictionarySynchronousProxy
Available on Fuchsia only.
Source§type Proxy = DictionaryProxy
type Proxy = DictionaryProxy
The async proxy for the same protocol.
Source§type Protocol = DictionaryMarker
type Protocol = DictionaryMarker
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 DictionarySynchronousProxy
impl RefUnwindSafe for DictionarySynchronousProxy
impl Send for DictionarySynchronousProxy
impl Sync for DictionarySynchronousProxy
impl Unpin for DictionarySynchronousProxy
impl UnwindSafe for DictionarySynchronousProxy
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