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
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
sourceimpl Clone for StoreError
impl Clone for StoreError
sourcefn clone(&self) -> StoreError
fn clone(&self) -> StoreError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StoreError
impl Debug for StoreError
sourceimpl Display for StoreError
impl Display for StoreError
sourceimpl Error for StoreError
impl Error for StoreError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<FastlyStatus> for StoreError
impl From<FastlyStatus> for StoreError
sourcefn from(st: FastlyStatus) -> Self
fn from(st: FastlyStatus) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<StoreError> for StoreError
impl PartialEq<StoreError> for StoreError
sourcefn eq(&self, other: &StoreError) -> bool
fn eq(&self, other: &StoreError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StoreError) -> bool
fn ne(&self, other: &StoreError) -> bool
This method tests for !=
.
impl Eq for StoreError
impl StructuralEq for StoreError
impl StructuralPartialEq for StoreError
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more