---
title: RateWindow
summary: To be used for picking the window in a rate counter lookuprate or a ERL checkrate
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/erl/enum.RateWindow/
---

**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#25

```rust
#[repr(u32)]
pub enum RateWindow {
    OneSec = 1,
    TenSecs = 10,
    SixtySecs = 60,
}
```

To be used for picking the window in a rate counter lookup_rate or a ERL check_rate

## Variants

### OneSec

**Value:** `1`

A one second rate window

### TenSecs

**Value:** `10`

A ten second rate window

### SixtySecs

**Value:** `60`

A sixty second rate 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>`
