#[non_exhaustive]pub enum AddressPurpose {
RemoteCandidate,
PeerReflexiveSource,
StunTurnServer,
InboundDatagramSource,
}Expand description
Why an IceAddressPolicy is asked about an address: the point where the address enters
the ICE agent or the peer connection. Each purpose has one direction
(AddressPurpose::direction).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RemoteCandidate
A remote candidate the peer signalled (in a description or trickled), an mDNS candidate once its name resolved, or a remote TCP candidate a TURN TCP allocation would open a permission or a connection for: a destination of connectivity checks. Outbound.
PeerReflexiveSource
The source of an authenticated Binding request that is no known remote candidate, about to be learned as a peer-reflexive remote candidate (RFC 8445 Section 7.3.1.3). Inbound.
StunTurnServer
A STUN or TURN server’s address, after its name resolved (or its literal address), before the engine sends it anything. Outbound.
InboundDatagramSource
The source of a datagram (or of ICE-TCP stream data, or of a peer’s connection to a listener or a relayed TCP address) about to reach the ICE agent or the peer connection’s media and DTLS. Inbound.
Implementations§
Source§impl AddressPurpose
impl AddressPurpose
Sourcepub const fn direction(self) -> AddressDirection
pub const fn direction(self) -> AddressDirection
The direction the address is used in for this purpose.