DictionaryHandle
ConfigStoreHandlepub struct DictionaryHandle { /* private fields */ }A low-level interface to Edge Dictionaries.
Unlike the high-level Dictionary, this type has methods
that return Result values upon failure, rather than panicking. Additionally, the
get() method allows the caller to configure the size of the buffer used to
received lookup results from the host.
Constants
ConfigStoreHandle insteadAn invalid handle.
Methods
ConfigStoreHandle insteadReturn true if the dictionary contains an entry with the given key.
Parameters
- self: &Self
- key: &str
Returns
ConfigStoreHandle insteadLookup a value in this dictionary.
If successful, this function returns Ok(Some(_)) if an entry was found, or Ok(None) if
no entry with the given key was found. If the lookup failed, a LookupError will be
returned.
Parameters
- self: &Self
- key: &str
- max_len: usize
Returns
ConfigStoreHandle insteadfn is_invalid(&self) -> boolReturn true if the request handle is invalid.
Parameters
- self: &Self
Returns
ConfigStoreHandle insteadfn is_valid(&self) -> boolReturn true if the request handle is valid.
Parameters
- self: &Self
Returns
ConfigStoreHandle insteadAcquire a handle to an Edge Dictionary.
If a handle could not be acquired, an OpenError will be returned.
Parameters
- name: &str
Returns
Trait implementations
impl Debug for DictionaryHandle
impl Hash for DictionaryHandle
handle::config_storefn hash<__H: Hasher>(&self, state: &mut __H)Parameters
- self: &Self
- state: &mut __H
impl PartialEq for DictionaryHandle
handle::config_storefn eq(&self, other: &Self) -> boolParameters
- self: &Self
- other: &Self
Returns