Skip to main content

ConvertProtocolNameList

Trait 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]>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§