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§
Auto Trait Implementations§
impl Forget for CandidateConfig
impl Freeze for CandidateConfig
impl Move for CandidateConfig
impl RefUnwindSafe for CandidateConfig
impl Send for CandidateConfigwhere
RawVecInner: Send,
impl Sync for CandidateConfigwhere
RawVecInner: Sync,
impl Unpin for CandidateConfig
impl UnsafeUnpin for CandidateConfig
impl UnwindSafe for CandidateConfigwhere
RawVecInner: UnwindSafe,
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