pub struct CandidateConfig {
pub candidate_id: String,
pub network: String,
pub address: String,
pub port: u16,
pub component: u16,
pub priority: u32,
pub foundation: String,
}Expand description
The fields common to every candidate type, used when constructing one.
Fields§
§candidate_id: StringA unique identifier for this candidate; generated when left empty.
network: StringThe transport, udp or tcp.
address: StringThe candidate’s address.
port: u16The candidate’s port.
component: u16The RTP component id: 1 for RTP, 2 for RTCP when not multiplexed.
priority: u32The candidate priority; computed from the type and local preference when zero.
foundation: StringThe foundation, which groups candidates that share a base and transport.
Pairs with the same foundation are checked together, so redundant checks are avoided.
Trait Implementations§
Source§impl Default for CandidateConfig
impl Default for CandidateConfig
Source§fn default() -> CandidateConfig
fn default() -> CandidateConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CandidateConfig
impl RefUnwindSafe for CandidateConfig
impl Send for CandidateConfig
impl Sync for CandidateConfig
impl Unpin for CandidateConfig
impl UnsafeUnpin for CandidateConfig
impl UnwindSafe for CandidateConfig
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