Trait hyper_static_server::rustls::internal::msgs::codec::Codec [−]
Things we can encode and read from a Reader.
Required methods
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
Encode yourself by appending onto bytes
.
pub fn read(&mut Reader<'_>) -> Option<Self>
Decode yourself by fiddling with the Reader
.
Return Some if it worked, None if not.
Provided methods
pub fn get_encoding(&self) -> Vec<u8, Global>
Convenience function to get the results of encode()
.
pub fn read_bytes(bytes: &[u8]) -> Option<Self>
Read one of these from the front of bytes
and
return it.
Implementations on Foreign Types
impl Codec for Vec<ProtocolVersion, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<ProtocolVersion, Global>>
impl Codec for Vec<Certificate, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<Certificate, Global>>
impl Codec for Vec<ServerExtension, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<ServerExtension, Global>>
impl Codec for u16
impl Codec for Vec<ClientCertificateType, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<ClientCertificateType, Global>>
impl Codec for Vec<PayloadU16, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<PayloadU16, Global>>
impl Codec for Vec<PSKKeyExchangeMode, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<PSKKeyExchangeMode, Global>>
impl Codec for u64
impl Codec for Vec<PayloadU8, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<PayloadU8, Global>>
impl Codec for Vec<PresharedKeyIdentity, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<PresharedKeyIdentity, Global>>
impl Codec for Vec<SignatureScheme, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<SignatureScheme, Global>>
impl Codec for Vec<CertReqExtension, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<CertReqExtension, Global>>
impl Codec for Vec<KeyShareEntry, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<KeyShareEntry, Global>>
impl Codec for u8
impl Codec for Vec<NamedGroup, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<NamedGroup, Global>>
impl Codec for Vec<ServerName, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(r: &mut Reader<'_>) -> Option<Vec<ServerName, Global>>
impl Codec for Vec<NewSessionTicketExtension, Global>
pub fn encode(&self, bytes: &mut Vec<u8, Global>)
pub fn read(
r: &mut Reader<'_>
) -> Option<Vec<NewSessionTicketExtension, Global>>
r: &mut Reader<'_>
) -> Option<Vec<NewSessionTicketExtension, Global>>