# Enum VoiceEvent

> What happens in a voice session.

`zaun_client::VoiceEvent` · Enum

```rust
pub enum VoiceEvent { … }
```

What happens in a voice session.

## Variants

### `Joined(VoiceParticipant)`

Someone joined the channel (no key package: that stays inside the session).

### `Updated(VoiceParticipant)`

Someone changed mute or deafen, or a moderator did.

### `Left { member, reason }`

Someone left the channel.

### `Connected(MemberId)`

The media connection to a participant is up.

### `Audio { member, frame }`

An Opus frame from a participant, decrypted.

### `Rekeyed(u32)`

This member's keys moved to a new epoch (someone joined or left).

### `KeyChanged { member }`

The host listed another key for `member` than the one this client saw first, so the
participant was skipped: no media and no keys go to it. Either the member replaced its
key, or the host is putting itself in the member's place; compare
`Member::fingerprint` with the member out of band.

### `Ended { reason, moved_to }`

The session ended: left, moved or disconnected by a moderator, the host went away, or
the media relay ended the allocation (never replaced by a direct path).
When moved, rejoin in `moved_to` with `Channel::join`.

### `Warning(String)`

Something was skipped safely (a peer whose key package did not verify, a refused
signal); the text names no key or address.

## Trait implementations

`Clone`, `Debug`

[Full rustdoc page](/docs/api/rust/zaun-client/zaun_client/voice/stay/enum.VoiceEvent.html)
