pub struct RemoteCandidate {
pub component: ComponentId,
pub address: IpAddr,
pub port: u16,
}Expand description
One entry of an a=remote-candidates line (RFC 8839 §5.2). Media-level.
A controlling agent includes it in an offer for a stream that is Completed, and in no other case; it names the pair it selected so the answerer can agree without a second round of checks.
Fields§
§component: ComponentIdWhich component this is the selected remote candidate for.
address: IpAddrIts address.
port: u16Its port.
Implementations§
Source§impl RemoteCandidate
impl RemoteCandidate
Sourcepub fn parse_list(value: &str) -> Option<Vec<Self>>
pub fn parse_list(value: &str) -> Option<Vec<Self>>
Read an a=remote-candidates value, which carries one entry per component.
None for a malformed line. Unlike a candidate this is all-or-nothing: §5.2 requires a
value for each component, so a half-read line would name a selected pair for one
component and silently drop the other.
Trait Implementations§
Source§impl Clone for RemoteCandidate
impl Clone for RemoteCandidate
Source§fn clone(&self) -> RemoteCandidate
fn clone(&self) -> RemoteCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteCandidate
impl Debug for RemoteCandidate
Source§impl Hash for RemoteCandidate
impl Hash for RemoteCandidate
Source§impl PartialEq for RemoteCandidate
impl PartialEq for RemoteCandidate
Source§fn eq(&self, other: &RemoteCandidate) -> bool
fn eq(&self, other: &RemoteCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RemoteCandidate
impl Eq 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