Struct msf_ice::RemoteCandidate
source · [−]pub struct RemoteCandidate { /* private fields */ }
Expand description
Remote candidate.
Implementations
sourceimpl RemoteCandidate
impl RemoteCandidate
sourcepub fn new<T>(
channel: usize,
component: u8,
kind: CandidateKind,
addr: SocketAddr,
foundation: T,
priority: u32
) -> Self where
T: ToString,
pub fn new<T>(
channel: usize,
component: u8,
kind: CandidateKind,
addr: SocketAddr,
foundation: T,
priority: u32
) -> Self where
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
sourceimpl Clone for RemoteCandidate
impl Clone for RemoteCandidate
sourcefn clone(&self) -> RemoteCandidate
fn clone(&self) -> RemoteCandidate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for RemoteCandidate
impl Send for RemoteCandidate
impl Sync for RemoteCandidate
impl Unpin for RemoteCandidate
impl UnwindSafe for RemoteCandidate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more