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)ServerNameAckSessionTicketAckRenegotiationInfo(PayloadU8)Protocols(ProtocolNameList)ExtendedMasterSecretAckCertificateStatusAckSignedCertificateTimestamp(SCTList)SupportedVersions(ProtocolVersion)TransportParameters(Vec<u8>)EarlyDataUnknown(UnknownExtension)Methods
impl ServerExtension[src]
impl ServerExtensionpub fn get_type(&self) -> ExtensionType[src]
pub fn get_type(&self) -> ExtensionTypeimpl ServerExtension[src]
impl ServerExtensionpub fn make_alpn(proto: String) -> ServerExtension[src]
pub fn make_alpn(proto: String) -> ServerExtensionpub fn make_empty_renegotiation_info() -> ServerExtension[src]
pub fn make_empty_renegotiation_info() -> ServerExtensionpub fn make_sct(sctl: Vec<u8>) -> ServerExtension[src]
pub fn make_sct(sctl: Vec<u8>) -> ServerExtensionTrait Implementations
impl Clone for ServerExtension[src]
impl Clone for ServerExtensionfn clone(&self) -> ServerExtension[src]
fn clone(&self) -> ServerExtensionReturns 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 ServerExtensionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Codec for ServerExtension[src]
impl Codec for ServerExtensionfn 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 ServerExtensionimpl Sync for ServerExtension
impl Sync for ServerExtension