pub(crate) trait KxDecode<'a>: Debug + Sized {
// Required method
fn decode(
r: &mut Reader<'a>,
algo: KeyExchangeAlgorithm,
) -> Result<Self, InvalidMessage>;
}Required Methods§
Sourcefn decode(
r: &mut Reader<'a>,
algo: KeyExchangeAlgorithm,
) -> Result<Self, InvalidMessage>
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§
impl KxDecode<'_> for ClientKeyExchangeParams
Available on crate feature
tls12 only.impl KxDecode<'_> for ServerKeyExchangeParams
Available on crate feature
tls12 only.