pub enum TransportKind {
Tcp,
Unix,
Tls,
TlsUnix,
Quic,
}Expand description
The kind of transport used for a connection.
Variants§
Tcp
Plain TCP.
Unix
Unix domain socket (no IP addresses; local/peer remain None).
Tls
TLS-wrapped TCP (rustls).
TlsUnix
TLS-wrapped Unix domain socket.
Quic
QUIC (HTTP/3) via Quinn.
Reserved for H3 endpoint information where Quinn exposes it
(remote address). Per-response H3 metadata is currently
explicitly unavailable (Response::network_stream() is None
for ordinary H3 responses); this variant documents the transport
kind for future connector-derived metadata without inventing
values today.
Trait Implementations§
Source§impl Clone for TransportKind
impl Clone for TransportKind
impl Copy for TransportKind
Source§impl Debug for TransportKind
impl Debug for TransportKind
impl Eq for TransportKind
Source§impl PartialEq for TransportKind
impl PartialEq for TransportKind
impl StructuralPartialEq for TransportKind
Auto Trait Implementations§
impl Forget for TransportKind
impl Freeze for TransportKind
impl Move for TransportKind
impl RefUnwindSafe for TransportKind
impl Send for TransportKind
impl Sync for TransportKind
impl Unpin for TransportKind
impl UnsafeUnpin for TransportKind
impl UnwindSafe for TransportKind
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