pub struct RemoteCandidate {
pub component_id: u32,
pub address: IpAddr,
pub port: u16,
}Expand description
Remote candidate for one component of a data stream
A single entry of the RemoteCandidates attribute, in
component-id connection-address port form
(RFC 8839 Section 5.2).
The address must be an IP address: agents generating candidates MUST NOT use FQDNs and agents receiving them MUST ignore them (RFC 8839 Section 5.1).
Fields§
§component_id: u32Component identifier of the data stream, 1 for RTP and 2 for RTCP.
address: IpAddrRemote address (IPv4 or IPv6).
port: u16Remote port.
Implementations§
Trait Implementations§
Source§impl Clone for RemoteCandidate
impl Clone for RemoteCandidate
Source§impl Debug for RemoteCandidate
impl Debug for RemoteCandidate
Source§impl Display for RemoteCandidate
impl Display for RemoteCandidate
impl Eq for RemoteCandidate
Source§impl FromStr for RemoteCandidate
impl FromStr for RemoteCandidate
Source§impl PartialEq for RemoteCandidate
impl PartialEq for RemoteCandidate
impl StructuralPartialEq for RemoteCandidate
Auto Trait Implementations§
impl Freeze for RemoteCandidate
impl RefUnwindSafe for RemoteCandidate
impl Send for RemoteCandidate
impl Sync for RemoteCandidate
impl Unpin for RemoteCandidate
impl UnsafeUnpin for RemoteCandidate
impl UnwindSafe for RemoteCandidate
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