pub struct Candidate<'a> {
pub foundation: u32,
pub component: CandidateComponent,
pub protocol: CandidateProtocol,
pub priority: u32,
pub addr: IpAddr,
pub port: u32,
pub type: CandidateType,
pub raddr: Option<IpAddr>,
pub rport: Option<u32>,
pub tcptype: Option<Cow<'a, str>>,
pub generation: Option<u32>,
pub network_id: Option<u32>,
}Expand description
Candidate
https://tools.ietf.org/html/rfc5245#section-15.1 https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidateInit/candidate
candidate:3348148302 1 udp 2113937151 192.0.2.1 56500 typ host candidate:3348148302 2 udp 2113937151 192.0.2.1 56501 typ host
Fields§
§foundation: u32§component: CandidateComponent§protocol: CandidateProtocol§priority: u32§addr: IpAddr§port: u32§type: CandidateType§raddr: Option<IpAddr>§rport: Option<u32>§tcptype: Option<Cow<'a, str>>§generation: Option<u32>§network_id: Option<u32>Implementations§
Trait Implementations§
impl<'a> Eq for Candidate<'a>
impl<'a> StructuralPartialEq for Candidate<'a>
Auto Trait Implementations§
impl<'a> Freeze for Candidate<'a>
impl<'a> RefUnwindSafe for Candidate<'a>
impl<'a> Send for Candidate<'a>
impl<'a> Sync for Candidate<'a>
impl<'a> Unpin for Candidate<'a>
impl<'a> UnwindSafe for Candidate<'a>
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