Struct tls_parser::tls::TlsVersion[][src]

pub struct TlsVersion(pub u16);

TLS version

Only the TLS version defined in the TLS message header is meaningful, the version defined in the record should be ignored or set to TLS 1.0

Methods

impl TlsVersion
[src]

Ssl30: TlsVersion = TlsVersion(768)

Tls10: TlsVersion = TlsVersion(769)

Tls11: TlsVersion = TlsVersion(770)

Tls12: TlsVersion = TlsVersion(771)

Tls13: TlsVersion = TlsVersion(772)

Tls13Draft18: TlsVersion = TlsVersion(32530)

Tls13Draft19: TlsVersion = TlsVersion(32531)

Tls13Draft20: TlsVersion = TlsVersion(32532)

Tls13Draft21: TlsVersion = TlsVersion(32533)

Tls13Draft22: TlsVersion = TlsVersion(32534)

Tls13Draft23: TlsVersion = TlsVersion(32535)

Trait Implementations

impl Clone for TlsVersion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TlsVersion
[src]

impl PartialEq for TlsVersion
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TlsVersion
[src]

impl From<TlsVersion> for u16
[src]

Performs the conversion.

impl Debug for TlsVersion
[src]

Formats the value using the given formatter. Read more

impl LowerHex for TlsVersion
[src]

Formats the value using the given formatter.

Auto Trait Implementations

impl Send for TlsVersion

impl Sync for TlsVersion