Type Alias EncryptedExtensions

Source
pub type EncryptedExtensions = Vec<ServerExtension>;

Aliased Type§

struct EncryptedExtensions { /* private fields */ }

Trait Implementations§

Source§

impl Codec for EncryptedExtensions

Source§

fn encode(&self, bytes: &mut Vec<u8>)

Encode yourself by appending onto bytes.
Source§

fn read(r: &mut Reader<'_>) -> Option<EncryptedExtensions>

Decode yourself by fiddling with the Reader. Return Some if it worked, None if not.
Source§

fn get_encoding(&self) -> Vec<u8>

Convenience function to get the results of encode().
Source§

fn read_bytes(bytes: &[u8]) -> Option<Self>

Read one of these from the front of bytes and return it.
Source§

impl HasServerExtensions for EncryptedExtensions

Source§

fn get_extensions(&self) -> &[ServerExtension]

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