Struct rustls::internal::msgs::handshake::HandshakeMessagePayload [−][src]
pub struct HandshakeMessagePayload {
pub typ: HandshakeType,
pub payload: HandshakePayload,
}Fields
typ: HandshakeType
payload: HandshakePayload
Methods
impl HandshakeMessagePayload[src]
impl HandshakeMessagePayloadpub fn length(&self) -> usize[src]
pub fn length(&self) -> usizepub fn read_version(
r: &mut Reader,
vers: ProtocolVersion
) -> Option<HandshakeMessagePayload>[src]
pub fn read_version(
r: &mut Reader,
vers: ProtocolVersion
) -> Option<HandshakeMessagePayload>pub fn build_key_update_notify() -> HandshakeMessagePayload[src]
pub fn build_key_update_notify() -> HandshakeMessagePayloadpub fn get_encoding_for_binder_signing(&self) -> Vec<u8>[src]
pub fn get_encoding_for_binder_signing(&self) -> Vec<u8>pub fn build_handshake_hash(hash: &[u8]) -> HandshakeMessagePayload[src]
pub fn build_handshake_hash(hash: &[u8]) -> HandshakeMessagePayloadTrait Implementations
impl Debug for HandshakeMessagePayload[src]
impl Debug for HandshakeMessagePayloadfn 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 HandshakeMessagePayload[src]
impl Codec for HandshakeMessagePayloadfn 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<HandshakeMessagePayload>[src]
fn read(r: &mut Reader) -> Option<HandshakeMessagePayload>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 HandshakeMessagePayload
impl Send for HandshakeMessagePayloadimpl Sync for HandshakeMessagePayload
impl Sync for HandshakeMessagePayload