openmls/extensions/last_resort.rs
1use tls_codec::{TlsDeserialize, TlsDeserializeBytes, TlsSerialize, TlsSize};
2
3use super::{Deserialize, Serialize};
4
5/// ```c
6/// // draft-ietf-mls-extensions-03
7/// struct {} LastResort;
8/// ```
9#[derive(
10 PartialEq,
11 Eq,
12 Clone,
13 Debug,
14 Serialize,
15 Deserialize,
16 TlsSerialize,
17 TlsDeserialize,
18 TlsDeserializeBytes,
19 TlsSize,
20 Default,
21)]
22pub struct LastResortExtension {}
23
24impl LastResortExtension {
25 /// Create a new `last_resort` extension.
26 pub fn new() -> Self {
27 Self::default()
28 }
29}