pub enum DictionaryRequest {
Clone {
request: ServerEnd<CloneableMarker>,
control_handle: DictionaryControlHandle,
},
Insert {
key: String,
capability: Capability,
control_handle: DictionaryControlHandle,
},
Get {
key: String,
responder: DictionaryGetResponder,
},
Remove {
key: String,
responder: DictionaryRemoveResponder,
},
IterateKeys {
key_iterator: ServerEnd<DictionaryKeyIteratorMarker>,
control_handle: DictionaryControlHandle,
},
LegacyExport {
responder: DictionaryLegacyExportResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: DictionaryControlHandle,
method_type: MethodType,
},
}
Expand description
A Dictionary
is a bundle of named runtime capabilities.
Variants§
Clone
Insert
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.
Get
Returns a clone of the Capability
named key
in this dictionary, if
that capability both exists and can be cloned.
Remove
Removes the Capability
named key
from this dictionary and returns
it, if that capability exists.
IterateKeys
Opens an iterator which can be used to iterate over the keys of this dictionary.
LegacyExport
Exports this dictionary for use in a
fuchsia.component.Realm/CreateChild
call.
Fields
§
responder: DictionaryLegacyExportResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: DictionaryControlHandle
§
method_type: MethodType
Implementations§
Source§impl DictionaryRequest
impl DictionaryRequest
pub fn into_clone( self, ) -> Option<(ServerEnd<CloneableMarker>, DictionaryControlHandle)>
pub fn into_insert( self, ) -> Option<(String, Capability, DictionaryControlHandle)>
pub fn into_get(self) -> Option<(String, DictionaryGetResponder)>
pub fn into_remove(self) -> Option<(String, DictionaryRemoveResponder)>
pub fn into_iterate_keys( self, ) -> Option<(ServerEnd<DictionaryKeyIteratorMarker>, DictionaryControlHandle)>
pub fn into_legacy_export(self) -> Option<DictionaryLegacyExportResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DictionaryRequest
impl !RefUnwindSafe for DictionaryRequest
impl Send for DictionaryRequest
impl Sync for DictionaryRequest
impl Unpin for DictionaryRequest
impl !UnwindSafe for DictionaryRequest
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