pub struct CandidateBuilder<P, R> { /* private fields */ }Expand description
A typesafe builder for constructing a Candidate.
This builder uses the Type State Pattern to enforce correct construction order and
protocol-specific constraints (such as preventing tcptype on UDP).
Auto Trait Implementations§
impl<P, R> Freeze for CandidateBuilder<P, R>
impl<P, R> RefUnwindSafe for CandidateBuilder<P, R>where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<P, R> Send for CandidateBuilder<P, R>
impl<P, R> Sync for CandidateBuilder<P, R>
impl<P, R> Unpin for CandidateBuilder<P, R>
impl<P, R> UnsafeUnpin for CandidateBuilder<P, R>where
P: UnsafeUnpin,
R: UnsafeUnpin,
impl<P, R> UnwindSafe for CandidateBuilder<P, R>where
P: UnwindSafe,
R: 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