Enum rustls::internal::msgs::handshake::ServerExtension [−][src]
pub enum ServerExtension { ECPointFormats(ECPointFormatList), ServerNameAck, SessionTicketAck, RenegotiationInfo(PayloadU8), Protocols(ProtocolNameList), KeyShare(KeyShareEntry), PresharedKey(u16), ExtendedMasterSecretAck, CertificateStatusAck, SignedCertificateTimestamp(SCTList), SupportedVersions(ProtocolVersion), TransportParameters(Vec<u8>), EarlyData, Unknown(UnknownExtension), }
Variants
ECPointFormats(ECPointFormatList)
ServerNameAck
SessionTicketAck
RenegotiationInfo(PayloadU8)
Protocols(ProtocolNameList)
ExtendedMasterSecretAck
CertificateStatusAck
SignedCertificateTimestamp(SCTList)
SupportedVersions(ProtocolVersion)
TransportParameters(Vec<u8>)
EarlyData
Unknown(UnknownExtension)
Methods
impl ServerExtension
[src]
impl ServerExtension
pub fn get_type(&self) -> ExtensionType
[src]
pub fn get_type(&self) -> ExtensionType
impl ServerExtension
[src]
impl ServerExtension
pub fn make_alpn(proto: String) -> ServerExtension
[src]
pub fn make_alpn(proto: String) -> ServerExtension
pub fn make_empty_renegotiation_info() -> ServerExtension
[src]
pub fn make_empty_renegotiation_info() -> ServerExtension
pub fn make_sct(sctl: Vec<u8>) -> ServerExtension
[src]
pub fn make_sct(sctl: Vec<u8>) -> ServerExtension
Trait Implementations
impl Clone for ServerExtension
[src]
impl Clone for ServerExtension
fn clone(&self) -> ServerExtension
[src]
fn clone(&self) -> ServerExtension
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ServerExtension
[src]
impl Debug for ServerExtension
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Codec for ServerExtension
[src]
impl Codec for ServerExtension
fn encode(&self, bytes: &mut Vec<u8>)
[src]
fn encode(&self, bytes: &mut Vec<u8>)
Encode yourself by appending onto bytes
.
fn read(r: &mut Reader) -> Option<ServerExtension>
[src]
fn read(r: &mut Reader) -> Option<ServerExtension>
Decode yourself by fiddling with the Reader
. Return Some if it worked, None if not. Read more
fn get_encoding(&self) -> Vec<u8>
[src]
fn get_encoding(&self) -> Vec<u8>
Convenience function to get the results of encode()
.
fn read_bytes(bytes: &[u8]) -> Option<Self>
[src]
fn read_bytes(bytes: &[u8]) -> Option<Self>
Read one of these from the front of bytes
and return it. Read more
Auto Trait Implementations
impl Send for ServerExtension
impl Send for ServerExtension
impl Sync for ServerExtension
impl Sync for ServerExtension