pub struct HpkeKdf(pub u16);Expand description
The Key Derivation Function (Kdf) type for HPKE operations.
Listed by IANA, as specified in RFC 9180 Section 7.2
Protocol enumerations in rustls are represented with a struct, which contains the numeric value used on the wire (in this case, u16). Each known value has a named const item on this type – this can be used in a match arm or to access the numeric value.
If a known value does not exist for a value you need, you can simply create it locally:
pub const MyValue: HpkeKdf = HpkeKdf(123);The Debug impl for this type also looks up and pretty-prints
known named items. Unknown values are formatted in hexadecimal.
Tuple Fields§
§0: u16Implementations§
Source§impl HpkeKdf
impl HpkeKdf
Trait Implementations§
impl Copy for HpkeKdf
impl Eq for HpkeKdf
impl StructuralPartialEq for HpkeKdf
Auto Trait Implementations§
impl Freeze for HpkeKdf
impl RefUnwindSafe for HpkeKdf
impl Send for HpkeKdf
impl Sync for HpkeKdf
impl Unpin for HpkeKdf
impl UnsafeUnpin for HpkeKdf
impl UnwindSafe for HpkeKdf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more