---
title: LookupError
summary: Errors thrown when a config store lookup failed.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/handle/config_store/enum.LookupError/
---

**Kind:** Enum  
**Module:** [config_store](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/handle/config_store/)  
**Package:** fastly 0.13.1  
**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/config_store/handle.rs#233

```rust
#[non_exhaustive]
pub enum LookupError {
    ConfigStoreInvalid,
    KeyInvalid,
    KeyTooLong,
    ValueTooLong,
    TooManyLookups,
    Other,
}
```

Errors thrown when a config store lookup failed.

## Variants

### ConfigStoreInvalid

The config store handle used for a lookup was invalid.

### KeyInvalid

The config store key provided was invalid.

### KeyTooLong

The config store key provided was too long.

### ValueTooLong

The config store value was too long for the provided buffer length.

### TooManyLookups

Too many lookups have been performed

### Other

A config store lookup failed for some other reason.

## Trait implementations

### impl Debug for LookupError

#### fmt

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/config_store/handle.rs#231

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

**Parameters**

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

**Returns**

`$crate::fmt::Result`

### impl Display for LookupError

#### fmt

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/config_store/handle.rs#231

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

**Parameters**

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

**Returns**

`::core::fmt::Result`

## Auto trait implementations

- `Freeze`
- `RefUnwindSafe`
- `Send`
- `Sync`
- `Unpin`
- `UnsafeUnpin`
- `UnwindSafe`

## Blanket implementations

- `Any`
- `Borrow<T>`
- `BorrowMut<T>`
- `Downcast`
- `DowncastSync`
- `ErasedDestructor`
- `From<T>`
- `Into<U>`
- `IntoEither`
- `Same`
- `ToString`
- `TryFrom<U>`
- `TryInto<U>`
