Trait rustls::msgs::handshake::ConvertProtocolNameList

source ·
pub trait ConvertProtocolNameList {
    // Required methods
    fn from_slices(names: &[&[u8]]) -> Self;
    fn to_slices(&self) -> Vec<&[u8]>;
    fn as_single_slice(&self) -> Option<&[u8]>;
}

Required Methods§

source

fn from_slices(names: &[&[u8]]) -> Self

source

fn to_slices(&self) -> Vec<&[u8]>

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConvertProtocolNameList for Vec<ProtocolName>

source§

fn from_slices(names: &[&[u8]]) -> Self

source§

fn to_slices(&self) -> Vec<&[u8]>

source§

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

Implementors§