[][src]Enum rustls::internal::msgs::handshake::ServerExtension

pub enum ServerExtension {
    ECPointFormats(ECPointFormatList),
    ServerNameAck,
    SessionTicketAck,
    RenegotiationInfo(PayloadU8),
    Protocols(ProtocolNameList),
    KeyShare(KeyShareEntry),
    PresharedKey(u16),
    ExtendedMasterSecretAck,
    CertificateStatusAck,
    SignedCertificateTimestamp(SCTList),
    SupportedVersions(ProtocolVersion),
    TransportParameters(Vec<u8>),
    Unknown(UnknownExtension),
}

Variants

ECPointFormats(ECPointFormatList)ServerNameAckSessionTicketAckRenegotiationInfo(PayloadU8)Protocols(ProtocolNameList)KeyShare(KeyShareEntry)PresharedKey(u16)ExtendedMasterSecretAckCertificateStatusAckSignedCertificateTimestamp(SCTList)SupportedVersions(ProtocolVersion)TransportParameters(Vec<u8>)Unknown(UnknownExtension)

Methods

impl ServerExtension[src]

pub fn get_type(&self) -> ExtensionType[src]

impl ServerExtension[src]

pub fn make_alpn(proto: String) -> ServerExtension[src]

pub fn make_empty_renegotiation_info() -> ServerExtension[src]

pub fn make_sct(sctl: Vec<u8>) -> ServerExtension[src]

Trait Implementations

impl Codec for ServerExtension[src]

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

Convenience function to get the results of encode().

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

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

impl Clone for ServerExtension[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ServerExtension[src]

Auto Trait Implementations

impl Unpin for ServerExtension

impl Sync for ServerExtension

impl Send for ServerExtension

impl UnwindSafe for ServerExtension

impl RefUnwindSafe for ServerExtension

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]