Trait ServerExt

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl ServerExt for Server<DualProtocolAcceptor>

Source§

fn set_upgrade(self, upgrade: bool) -> Self

Implementors§