pub struct IceCandidate {
pub foundation: String,
pub priority: u32,
pub address: String,
pub protocol: Protocol,
pub port: u16,
pub type: IceCandidateType,
pub tcp_type: Option<IceCandidateTcpType>,
}
Expand description
ICE candidate
Fields§
§foundation: String
Unique identifier that allows ICE to correlate candidates that appear on multiple transports.
priority: u32
The assigned priority of the candidate.
address: String
The IP address or hostname of the candidate.
protocol: Protocol
The protocol of the candidate.
port: u16
The port for the candidate.
type: IceCandidateType
The type of candidate (always Host
).
tcp_type: Option<IceCandidateTcpType>
The type of TCP candidate (always Passive
).
Trait Implementations§
Source§impl Clone for IceCandidate
impl Clone for IceCandidate
Source§fn clone(&self) -> IceCandidate
fn clone(&self) -> IceCandidate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IceCandidate
impl Debug for IceCandidate
Source§impl<'de> Deserialize<'de> for IceCandidate
impl<'de> Deserialize<'de> for IceCandidate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for IceCandidate
impl Hash for IceCandidate
Source§impl Ord for IceCandidate
impl Ord for IceCandidate
Source§fn cmp(&self, other: &IceCandidate) -> Ordering
fn cmp(&self, other: &IceCandidate) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IceCandidate
impl PartialEq for IceCandidate
Source§impl PartialOrd for IceCandidate
impl PartialOrd for IceCandidate
Source§impl Serialize for IceCandidate
impl Serialize for IceCandidate
impl Eq for IceCandidate
impl StructuralPartialEq for IceCandidate
Auto Trait Implementations§
impl Freeze for IceCandidate
impl RefUnwindSafe for IceCandidate
impl Send for IceCandidate
impl Sync for IceCandidate
impl Unpin for IceCandidate
impl UnwindSafe for IceCandidate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more