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.