CandidateApi

Trait CandidateApi 

Source
pub trait CandidateApi: CandidateAsC {
    // Provided methods
    fn component_id(&self) -> usize { ... }
    fn candidate_type(&self) -> CandidateType { ... }
    fn transport(&self) -> TransportType { ... }
    fn foundation(&self) -> String { ... }
    fn priority(&self) -> u32 { ... }
    fn address(&self) -> Address { ... }
    fn base_address(&self) -> Address { ... }
    fn related_address(&self) -> Option<Address> { ... }
    fn tcp_type(&self) -> TcpType { ... }
}
Expand description

ICE candidate.

Provided Methods§

Source

fn component_id(&self) -> usize

The component

Source

fn candidate_type(&self) -> CandidateType

The type of the Candidate

Source

fn transport(&self) -> TransportType

The network transport

Source

fn foundation(&self) -> String

The (unique) foundation

Source

fn priority(&self) -> u32

The priority

Source

fn address(&self) -> Address

The address to send to

Source

fn base_address(&self) -> Address

The address to send from

Source

fn related_address(&self) -> Option<Address>

Any related address that generated this candidate, e.g. STUN/TURN server

Source

fn tcp_type(&self) -> TcpType

The type of TCP candidate

Implementors§