KxDecode

Trait KxDecode 

Source
pub(crate) trait KxDecode<'a>: Debug + Sized {
    // Required method
    fn decode(
        r: &mut Reader<'a>,
        algo: KeyExchangeAlgorithm,
    ) -> Result<Self, InvalidMessage>;
}

Required Methods§

Source

fn decode( r: &mut Reader<'a>, algo: KeyExchangeAlgorithm, ) -> Result<Self, InvalidMessage>

Decode a key exchange message given the key_exchange algo

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl KxDecode<'_> for ClientKeyExchangeParams

Available on crate feature tls12 only.
Source§

impl KxDecode<'_> for ServerKeyExchangeParams

Available on crate feature tls12 only.