Trait tlspuffin::tls::rustls::msgs::handshake::HasServerExtensions

source ·
pub trait HasServerExtensions {
    // Required method
    fn get_extensions(&self) -> &[ServerExtension];

    // Provided methods
    fn has_duplicate_extension(&self) -> bool { ... }
    fn find_extension(&self, ext: ExtensionType) -> Option<&ServerExtension> { ... }
    fn get_alpn_protocol(&self) -> Option<&[u8]> { ... }
    fn get_quic_params_extension(&self) -> Option<Vec<u8>> { ... }
    fn early_data_extension_offered(&self) -> bool { ... }
}

Required Methods§

Provided Methods§

source

fn has_duplicate_extension(&self) -> bool

Returns true if there is more than one extension of a given type.

source

fn find_extension(&self, ext: ExtensionType) -> Option<&ServerExtension>

source

fn get_alpn_protocol(&self) -> Option<&[u8]>

source

fn get_quic_params_extension(&self) -> Option<Vec<u8>>

source

fn early_data_extension_offered(&self) -> bool

Implementations on Foreign Types§

source§

impl HasServerExtensions for Vec<ServerExtension>

Implementors§