# SerialEventError

`import { SerialEventError } from "destack:device/binding";`

Serial error event.

```ds title="SerialEventError"
export struct SerialEventError {
    kind: "error";
    timestampNs: uint64;
    sequence: uint64;
    error: SerialErrorKind;
    code: int32;
}
```

[language/library/src/device/binding/serial.ds:248:259](https://github.com/destack-sh/destack/blob/main/language/library/src/device/binding/serial.ds#L248-L259)

## Members

### `kind: "error"`

Event discriminator.

### `timestampNs: uint64`

Event timestamp in nanoseconds.

### `sequence: uint64`

Event sequence number.

### `error: SerialErrorKind`

Serial error kind.

### `code: int32`

Host error code when available.
