enum DialResult<C: Codec<ByteBuffer> + Default + Clone> {
Channel(FramedConn<C>, Option<PeerID>),
Quic(FramedConn<C>, QuicConn, Option<PeerID>),
}Expand description
Internal dial result. Generic over the codec used to frame the resulting connection. Carries the optional cert-derived PeerID so the caller can stamp it on the QueuedConn for the application handshake to enforce.
Variants§
Channel(FramedConn<C>, Option<PeerID>)
TCP or TLS: a framed connection.
Quic(FramedConn<C>, QuicConn, Option<PeerID>)
QUIC: handshake stream + full QUIC connection.
Auto Trait Implementations§
impl<C> Freeze for DialResult<C>where
C: Freeze,
impl<C> RefUnwindSafe for DialResult<C>where
C: RefUnwindSafe,
impl<C> Send for DialResult<C>
impl<C> Sync for DialResult<C>
impl<C> Unpin for DialResult<C>where
C: Unpin,
impl<C> UnsafeUnpin for DialResult<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for DialResult<C>where
C: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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