pub trait ServerExt {
// Required method
fn set_upgrade(self, upgrade: bool) -> Self;
}
Expand description
Supplies configuration methods for Server
with DualProtocolAcceptor
.
See bind_dual_protocol()
for easy creation.
Required Methods§
Sourcefn set_upgrade(self, upgrade: bool) -> Self
fn set_upgrade(self, upgrade: bool) -> Self
Set if HTTP connections should be automatically upgraded to HTTPS.
See UpgradeHttp
for more details.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.