pub struct Candidate {
pub component: u8,
pub foundation: String,
pub generation: u8,
pub id: String,
pub ip: IpAddr,
pub port: u16,
pub priority: u32,
pub protocol: String,
pub rel_addr: Option<IpAddr>,
pub rel_port: Option<u16>,
pub network: Option<u8>,
pub type_: Type,
}Expand description
A candidate for an ICE-UDP session.
Fields§
§component: u8A Component ID as defined in ICE-CORE.
foundation: StringA Foundation as defined in ICE-CORE.
generation: u8An index, starting at 0, that enables the parties to keep track of updates to the candidate throughout the life of the session.
id: StringA unique identifier for the candidate.
ip: IpAddrThe Internet Protocol (IP) address for the candidate transport mechanism; this can be either an IPv4 address or an IPv6 address.
port: u16The port at the candidate IP address.
priority: u32A Priority as defined in ICE-CORE.
protocol: StringThe protocol to be used. The only value defined by this specification is “udp”.
rel_addr: Option<IpAddr>A related address as defined in ICE-CORE.
rel_port: Option<u16>A related port as defined in ICE-CORE.
network: Option<u8>An index, starting at 0, referencing which network this candidate is on for a given peer.
type_: TypeA Candidate Type as defined in ICE-CORE.
Trait Implementations§
Source§impl AsXml for Candidate
impl AsXml for Candidate
Source§impl FromXml for Candidate
impl FromXml for Candidate
Source§type Builder = CandidateFromXmlBuilder
type Builder = CandidateFromXmlBuilder
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Self may be parsed from
a given XML element. Read more