pub trait TlsListElement {
    const SIZE_LEN: ListLength;
}
Expand description

A trait for types that can be encoded and decoded in a list.

This trait is used to implement Codec for Vec<T>. Lists in the TLS wire format are prefixed with a length, the size of which depends on the type of the list elements. As such, the Codec implementation for Vec<T> requires an implementation of this trait for its element type T.

Required Associated Constants§

Implementors§

source§

impl TlsListElement for CipherSuite

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for ProtocolVersion

source§

const SIZE_LEN: ListLength = ListLength::U8

source§

impl TlsListElement for SignatureScheme

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for ClientCertificateType

source§

const SIZE_LEN: ListLength = ListLength::U8

source§

impl TlsListElement for Compression

source§

const SIZE_LEN: ListLength = ListLength::U8

source§

impl TlsListElement for ECPointFormat

source§

const SIZE_LEN: ListLength = ListLength::U8

source§

impl TlsListElement for NamedGroup

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for PSKKeyExchangeMode

source§

const SIZE_LEN: ListLength = ListLength::U8

source§

impl TlsListElement for CertReqExtension

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for CertificateExtension

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for ClientExtension

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for HelloRetryExtension

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for NewSessionTicketExtension

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for ServerExtension

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for Certificate

source§

impl TlsListElement for CertificateEntry

source§

impl TlsListElement for DistinguishedName

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for KeyShareEntry

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for PresharedKeyBinder

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for PresharedKeyIdentity

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for ProtocolName

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for ResponderId

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for Sct

source§

const SIZE_LEN: ListLength = ListLength::U16

source§

impl TlsListElement for ServerName

source§

const SIZE_LEN: ListLength = ListLength::U16