Enum fastly_kv_preview::StoreError
source · [−]#[non_exhaustive]
pub enum StoreError {
NotEnabled,
InvalidKey,
InvalidStoreHandle,
UnknownStore(String),
Unexpected(FastlyStatus),
}
Expand description
Errors that can arise during key-value store operations.
This type is marked as non-exhaustive because more variants will be added over time.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotEnabled
The key-value store interface is not enabled for this service or on this cache node.
InvalidKey
The key provided for this operation was not valid.
InvalidStoreHandle
The store handle provided for this operation was not valid.
UnknownStore(String)
The store by this name did not exist.
Unexpected(FastlyStatus)
Some unexpected error occurred.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnwindSafe for StoreError
Blanket Implementations
Mutably borrows from an owned value. Read more