CacheError

Enumin corefastly 0.13.1View source
1
2
3
4
5
6
7
8
#[non_exhaustive]
pub enum CacheError {
LimitExceeded,
InvalidOperation,
Unsupported,
Timeout,
Other(FastlyStatus),
}

Errors arising from cache operations.

Variants

LimitExceeded

Operation failed due to a limit.

InvalidOperation

Operation was not valid to be performed given the state of the cached item.

Unsupported

Cache operation is not supported.

Timeout

The cache operation did not complete within the timeout supplied by the caller.

This is returned by timeout-bounded operations such as PendingTransaction::wait_for() when the timeout elapses before the operation completes.

Other

An unknown error occurred.

0: fastly_shared::FastlyStatus

Trait implementations

impl Debug for CacheError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Parameters

self: &Self
f: &mut $crate::fmt::Formatter

Returns

$crate::fmt::Result

impl Display for CacheError

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Parameters

self: &Self
__formatter: &mut ::core::fmt::Formatter

Returns

::core::fmt::Result

impl From<FastlyStatus> for CacheError

fn from(status: FastlyStatus) -> Self

Parameters

status: FastlyStatus

Returns

Self

Auto trait implementations

Blanket implementations