---
title: CounterDuration
summary: To be used for picking the duration in a rate counter lookup_count call
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/erl/enum.CounterDuration/
---

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

```rust
#[repr(u32)]
pub enum CounterDuration {
    TenSec = 10,
    TwentySecs = 20,
    ThirtySecs = 30,
    FortySecs = 40,
    FiftySecs = 50,
    SixtySecs = 60,
}
```

To be used for picking the duration in a rate counter lookup_count call

## Variants

### TenSec

**Value:** `10`

A one second counter window

### TwentySecs

**Value:** `20`

A twenty second counter window

### ThirtySecs

**Value:** `30`

A thirty second counter window

### FortySecs

**Value:** `40`

A forty second counter window

### FiftySecs

**Value:** `50`

A fifty second counter window

### SixtySecs

**Value:** `60`

A sixty second counter window

## 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`
- `TryFrom<U>`
- `TryInto<U>`
