[−][src]Struct xmpp_parsers::jingle_s5b::Candidate
A candidate for a connection.
Fields
cid: CandidateId
The identifier for this candidate.
host: IpAddr
The host to connect to.
jid: Jid
The JID to request at the given end.
port: Option<u16>
The port to connect to.
priority: u32
The priority of this candidate, computed using this formula: priority = (2^16)*(type preference) + (local preference)
type_: Type
The type of the connection being proposed by this candidate.
Methods
impl Candidate
[src]
pub fn new(cid: CandidateId, host: IpAddr, jid: Jid, priority: u32) -> Candidate
[src]
Creates a new candidate with the given parameters.
pub fn with_port(self, port: u16) -> Candidate
[src]
Sets the port of this candidate.
pub fn with_type(self, type_: Type) -> Candidate
[src]
Sets the type of this candidate.
Trait Implementations
impl From<Candidate> for Element
[src]
impl Clone for Candidate
[src]
fn clone(&self) -> 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]
Auto Trait Implementations
impl Send for Candidate
impl Unpin for Candidate
impl Sync for Candidate
impl UnwindSafe for Candidate
impl RefUnwindSafe for Candidate
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IntoElements for T where
T: Into<Element>,
[src]
T: Into<Element>,
fn into_elements(self, emitter: &mut ElementEmitter)
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self