---
title: ServeSummary
summary: A summary of information from running Serve.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/serve/struct.ServeSummary/
---

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

```rust
pub struct ServeSummary<E> { /* private fields */ }
```

A summary of information from running [Serve](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/serve/struct.Serve/).

## Methods

### error

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/http/serve.rs#211

```rust
fn error(&self) -> Option<&E>
```

Inspect the error returned by the handler that caused [Serve](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/serve/struct.Serve/) to stop.

**Parameters**

- `self`: `&Self`

**Returns**

`Option<&E>`

### into_result

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/http/serve.rs#216

```rust
fn into_result(self) -> Result<(), E>
```

Convert this summary into a [Result](https://doc.rust-lang.org/stable/core/result/enum.Result.html) containing the handler error that stopped [Serve](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/serve/struct.Serve/).

**Parameters**

- `self`: `Self`

**Returns**

`Result<(), E>`

### requests

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/http/serve.rs#196

```rust
fn requests(&self) -> usize
```

Returns how many requests were processed by [Serve](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/serve/struct.Serve/).

**Parameters**

- `self`: `&Self`

**Returns**

`usize`

### time_handler

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/http/serve.rs#201

```rust
fn time_handler(&self) -> Duration
```

Returns the total amount of time that [Serve](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/serve/struct.Serve/) spent running the handler callback.

**Parameters**

- `self`: `&Self`

**Returns**

`Duration`

### time_waited

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/http/serve.rs#206

```rust
fn time_waited(&self) -> Duration
```

Returns the total amount of time that [Serve](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/serve/struct.Serve/) spent waiting for another request.

**Parameters**

- `self`: `&Self`

**Returns**

`Duration`

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