Trait TransportProtocolInputExt
pub trait TransportProtocolInputExt {
// Required method
fn transport_protocol(&self) -> TransportProtocol;
}Available on crate feature
net only.Expand description
Read the transport-layer TransportProtocol (TCP/UDP) of a service input.
Always known, so this is infallible.
Required Methods§
fn transport_protocol(&self) -> TransportProtocol
fn transport_protocol(&self) -> TransportProtocol
The transport protocol (TCP or UDP).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".