pub struct CandidateBuilder { /* private fields */ }Expand description
A builder for a Candidate
Implementations§
Source§impl CandidateBuilder
impl CandidateBuilder
Sourcepub fn base_address(self, base: Address) -> Self
pub fn base_address(self, base: Address) -> Self
Specify the base address of the to be built candidate
Specify the related address of the to be built candidate
Sourcepub fn tcp_type(self, typ: TcpType) -> Self
pub fn tcp_type(self, typ: TcpType) -> Self
Specify the type of TCP connection of the to be built candidate
- This will panic at build() time if the transport type is not
TransportType::Tcp. - This will panic at build() time if this function is not called but the
transport type is
TransportType::Tcp