Struct fastly::handle::dictionary::DictionaryHandle
source · [−]#[repr(transparent)]pub struct DictionaryHandle { /* private fields */ }
Expand description
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.
Implementations
Acquire a handle to an Edge Dictionary.
If a handle could not be acquired, an OpenError
will be returned.
Lookup 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.
Return true if the dictionary contains an entry with the given key.
Return true if the request handle is invalid.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.