pub struct CandidateRelayConfig {
pub base_config: CandidateConfig,
pub rel_addr: String,
pub rel_port: u16,
pub url: Option<String>,
}Expand description
The config required to create a new CandidateRelay.
Fields§
§base_config: CandidateConfigThe fields shared by every candidate type.
rel_addr: StringThe base address this candidate was derived from, reported as raddr.
rel_port: u16The base port, reported as rport.
url: Option<String>The server this candidate was gathered from.
Implementations§
Source§impl CandidateRelayConfig
impl CandidateRelayConfig
Sourcepub fn new_candidate_relay(self) -> Result<Candidate>
pub fn new_candidate_relay(self) -> Result<Candidate>
Creates a new relay candidate.
Trait Implementations§
Auto Trait Implementations§
impl Forget for CandidateRelayConfig
impl Freeze for CandidateRelayConfig
impl Move for CandidateRelayConfig
impl RefUnwindSafe for CandidateRelayConfig
impl Send for CandidateRelayConfigwhere
RawVecInner: Send,
impl Sync for CandidateRelayConfigwhere
RawVecInner: Sync,
impl Unpin for CandidateRelayConfig
impl UnsafeUnpin for CandidateRelayConfig
impl UnwindSafe for CandidateRelayConfigwhere
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