pub struct EchClientHelloType(pub u8);Expand description
The type of Encrypted Client Hello (EchClientHelloType).
Specified in RFC 9849 Section 5.
Protocol enumerations in rustls are represented with a struct, which contains the numeric value used on the wire (in this case, u8). 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: EchClientHelloType = EchClientHelloType(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: u8Implementations§
Source§impl EchClientHelloType
impl EchClientHelloType
pub const ClientHelloOuter: Self
pub const ClientHelloInner: Self
Trait Implementations§
Source§impl Clone for EchClientHelloType
impl Clone for EchClientHelloType
Source§fn clone(&self) -> EchClientHelloType
fn clone(&self) -> EchClientHelloType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EchClientHelloType
impl Debug for EchClientHelloType
Source§impl From<EchClientHelloType> for u8
impl From<EchClientHelloType> for u8
Source§fn from(x: EchClientHelloType) -> Self
fn from(x: EchClientHelloType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for EchClientHelloType
impl From<u8> for EchClientHelloType
Source§impl Hash for EchClientHelloType
impl Hash for EchClientHelloType
Source§impl PartialEq for EchClientHelloType
impl PartialEq for EchClientHelloType
impl Copy for EchClientHelloType
impl Eq for EchClientHelloType
impl StructuralPartialEq for EchClientHelloType
Auto Trait Implementations§
impl Freeze for EchClientHelloType
impl RefUnwindSafe for EchClientHelloType
impl Send for EchClientHelloType
impl Sync for EchClientHelloType
impl Unpin for EchClientHelloType
impl UnsafeUnpin for EchClientHelloType
impl UnwindSafe for EchClientHelloType
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