pub struct RemoteCandidate { /* private fields */ }Expand description
Remote candidate.
Implementations§
Source§impl RemoteCandidate
impl RemoteCandidate
Sourcepub fn new<T>(
channel: usize,
component: u8,
kind: CandidateKind,
addr: SocketAddr,
foundation: T,
priority: u32,
) -> Selfwhere
T: ToString,
pub fn new<T>(
channel: usize,
component: u8,
kind: CandidateKind,
addr: SocketAddr,
foundation: T,
priority: u32,
) -> Selfwhere
T: ToString,
Create a new remote candidate.
§Note
Unlike the component ID definition in RFC 5245, this component ID is zero-based. If you’re creating a new remote candidate from an RFC 5245 component ID (e.g. from a session description), make sure to subtract one.
Sourcepub fn peer_reflexive(
channel: usize,
component: u8,
addr: SocketAddr,
priority: u32,
) -> Self
pub fn peer_reflexive( channel: usize, component: u8, addr: SocketAddr, priority: u32, ) -> Self
Create a new peer-reflexive remote candidate.
Sourcepub fn kind(&self) -> CandidateKind
pub fn kind(&self) -> CandidateKind
Get type of the candidate.
Sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
Get the address.
Sourcepub fn foundation(&self) -> &str
pub fn foundation(&self) -> &str
Get the foundation.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RemoteCandidate
impl RefUnwindSafe for RemoteCandidate
impl Send for RemoteCandidate
impl Sync for RemoteCandidate
impl Unpin 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