# Enum command::object::IcePolicy

> Which ICE candidates clients may use.

`zaun_community_protocol::command::object::IcePolicy` · Enum

```rust
pub enum IcePolicy { … }
```

Which ICE candidates clients may use.

Peer-to-peer media shows each participant's IP address to the others. Only `relay` hides
it: every packet goes through a TURN server, which sees addresses but not media.

## Variants

### `Relay`

TURN relays only (`iceTransportPolicy: "relay"`): no participant learns another's
address.

### `All`

Relays and direct paths: direct paths reveal addresses to other participants.

### `Direct`

The host has no TURN server: media can only go peer to peer, which reveals each
participant's IP address to the others. Clients must ask the user before joining.

## Trait implementations

`Clone`, `Copy`, `Debug`, `Deserialize<'de>`, `Eq`, `Hash`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/voice/enum.IcePolicy.html)
