pub trait ProtocolInputExt {
// Required method
fn protocol(&self) -> Option<&Protocol>;
// Provided method
fn protocol_default_port(&self) -> Option<u16> { ... }
}Expand description
Read the application-layer Protocol (scheme) of a service input.
Required Methods§
Provided Methods§
Sourcefn protocol_default_port(&self) -> Option<u16>
fn protocol_default_port(&self) -> Option<u16>
The default port of the resolved Protocol (e.g. 443 for HTTPS), or
None if the protocol is unknown or portless.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: ProtocolInputExt + ?Sized> ProtocolInputExt for &T
impl<T: ProtocolInputExt + ?Sized> ProtocolInputExt for &T
Implementors§
impl ProtocolInputExt for ConnectRequest
Available on crate feature
std only.