Skip to main content

ChannelSecurityExt

Trait ChannelSecurityExt 

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

Source

fn requires_secure(self) -> Self

Require HTTPS for this path pattern

Source

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.

Implementors§