pub struct DialWinner<C> {
pub conn: C,
pub addr: SocketAddr,
pub family: Family,
}Expand description
The winning connection plus which candidate/family established it.
Fields§
§conn: CThe connection returned by the caller’s dial_fn.
addr: SocketAddrThe address that won.
family: FamilyThe family of the winning address (so the caller can record the preference that held).
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for DialWinner<C>where
C: Freeze,
impl<C> RefUnwindSafe for DialWinner<C>where
C: RefUnwindSafe,
impl<C> Send for DialWinner<C>where
C: Send,
impl<C> Sync for DialWinner<C>where
C: Sync,
impl<C> Unpin for DialWinner<C>where
C: Unpin,
impl<C> UnsafeUnpin for DialWinner<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for DialWinner<C>where
C: 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