[][src]Struct xmpp_parsers::jingle_ice_udp::Candidate

pub struct Candidate {
    pub component: u8,
    pub foundation: u8,
    pub generation: u8,
    pub id: String,
    pub ip: IpAddr,
    pub network: u8,
    pub port: u16,
    pub priority: u32,
    pub protocol: String,
    pub rel_addr: Option<IpAddr>,
    pub rel_port: Option<u16>,
    pub type_: Type,
}

A candidate for an ICE-UDP session.

Fields

component: u8

A Component ID as defined in ICE-CORE.

foundation: u8

A Foundation as defined in ICE-CORE.

generation: u8

An index, starting at 0, that enables the parties to keep track of updates to the candidate throughout the life of the session.

id: String

A unique identifier for the candidate.

ip: IpAddr

The Internet Protocol (IP) address for the candidate transport mechanism; this can be either an IPv4 address or an IPv6 address.

network: u8

An index, starting at 0, referencing which network this candidate is on for a given peer.

port: u16

The port at the candidate IP address.

priority: u32

A Priority as defined in ICE-CORE.

protocol: String

The 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.

type_: Type

A Candidate Type as defined in ICE-CORE.

Trait Implementations

impl From<Candidate> for Element[src]

impl Clone for Candidate[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Candidate[src]

impl TryFrom<Element> for Candidate[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoElements for T where
    T: Into<Element>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self