pub struct CertificateCompressionAlgorithm(pub u16);Expand description
The “TLS Certificate Compression Algorithm IDs” TLS protocol enum. Values in this enum are taken from RFC8879.
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: CertificateCompressionAlgorithm = CertificateCompressionAlgorithm(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§
Trait Implementations§
Source§impl Clone for CertificateCompressionAlgorithm
impl Clone for CertificateCompressionAlgorithm
Source§fn clone(&self) -> CertificateCompressionAlgorithm
fn clone(&self) -> CertificateCompressionAlgorithm
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 From<CertificateCompressionAlgorithm> for u16
impl From<CertificateCompressionAlgorithm> for u16
Source§fn from(x: CertificateCompressionAlgorithm) -> Self
fn from(x: CertificateCompressionAlgorithm) -> Self
Converts to this type from the input type.
Source§impl From<u16> for CertificateCompressionAlgorithm
impl From<u16> for CertificateCompressionAlgorithm
Source§impl PartialEq for CertificateCompressionAlgorithm
impl PartialEq for CertificateCompressionAlgorithm
Source§fn eq(&self, other: &CertificateCompressionAlgorithm) -> bool
fn eq(&self, other: &CertificateCompressionAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CertificateCompressionAlgorithm
impl Eq for CertificateCompressionAlgorithm
impl StructuralPartialEq for CertificateCompressionAlgorithm
Auto Trait Implementations§
impl Freeze for CertificateCompressionAlgorithm
impl RefUnwindSafe for CertificateCompressionAlgorithm
impl Send for CertificateCompressionAlgorithm
impl Sync for CertificateCompressionAlgorithm
impl Unpin for CertificateCompressionAlgorithm
impl UnsafeUnpin for CertificateCompressionAlgorithm
impl UnwindSafe for CertificateCompressionAlgorithm
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