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<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>>