pub struct CandidateBuilder { /* private fields */ }Expand description
A builder for a Candidate
Implementations§
Source§impl CandidateBuilder
impl CandidateBuilder
pub fn build(self) -> Candidate
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CandidateBuilder
impl RefUnwindSafe for CandidateBuilder
impl !Send for CandidateBuilder
impl !Sync for CandidateBuilder
impl Unpin for CandidateBuilder
impl UnwindSafe for CandidateBuilder
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