pub trait ChannelSecurityExt {
// Required methods
fn requires_secure(self) -> Self;
fn requires_insecure(self) -> Self;
}Expand description
Helper trait for building channel security rules
Required Methods§
Sourcefn requires_secure(self) -> Self
fn requires_secure(self) -> Self
Require HTTPS for this path pattern
Sourcefn requires_insecure(self) -> Self
fn requires_insecure(self) -> Self
Allow HTTP for this path pattern
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.