ConfigStoreHandle
pub struct ConfigStoreHandle { /* private fields */ }A low-level interface to Config Store.
Methods here are typically exposed as the try_* APIs on
crate::config_store::ConfigStore and should not be needed directly.
Additionally, the get() method allows the caller to configure the
size of the buffer used to receive lookup results from the host. The size of this buffer
is typically managed by APIs exposed in crate::config_store::ConfigStore.
Constants
An invalid handle.
Methods
contains
View sourceReturn true if the config store contains an entry with the given key.
Parameters
- self: &Self
- key: &str
Returns
from_u32
View sourceunsafe fn from_u32(handle: u32) -> SelfMake a handle from its underlying representation.
This should only be used when calling the raw ABI directly, and care should be taken not to reuse or alias handle values.
Parameters
- handle: u32
Returns
get
View sourceLookup a value in this config store.
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
- initial_buf_len: usize
Returns
is_invalid
View sourcefn is_invalid(&self) -> boolReturn true if the crate::config_store::ConfigStore handle is invalid.
Parameters
- self: &Self
Returns
is_valid
View sourcefn is_valid(&self) -> boolReturn true if the crate::config_store::ConfigStore handle is valid.
Parameters
- self: &Self
Returns
open
View sourceAcquire a handle to an Config Store.
If a handle could not be acquired, an OpenError will be returned.
Parameters
- name: &str
Returns