---
title: OpenError
summary: Errors thrown when a secret store could not be opened.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/secret_store/enum.OpenError/
---

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

```rust
#[non_exhaustive]
pub enum OpenError {
    SecretStoreDoesNotExist(String),
    InvalidSecretStoreName(String),
    Unexpected(FastlyStatus),
}
```

Errors thrown when a secret store could not be opened.

## Variants

### SecretStoreDoesNotExist

- `0`: `String`

No secret store exists with the given name.

### InvalidSecretStoreName

- `0`: `String`

The secret store name given is invalid.

### Unexpected

- `0`: `fastly_shared::FastlyStatus`

An unexpected error occurred

## Trait implementations

### impl Debug for OpenError

#### fmt

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/secret_store/handle.rs#318

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

**Parameters**

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

**Returns**

`$crate::fmt::Result`

### impl Display for OpenError

#### fmt

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/secret_store/handle.rs#318

```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>`
