pub struct SignatureScheme(pub u16);Expand description
The SignatureScheme TLS protocol enum. Values in this enum are taken
from the various RFCs covering TLS, and are listed by IANA.
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: SignatureScheme = SignatureScheme(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 SignatureScheme
impl SignatureScheme
pub const RSA_PKCS1_SHA1: Self
pub const ECDSA_SHA1_Legacy: Self
pub const RSA_PKCS1_SHA256: Self
pub const ECDSA_NISTP256_SHA256: Self
pub const RSA_PKCS1_SHA384: Self
pub const ECDSA_NISTP384_SHA384: Self
pub const RSA_PKCS1_SHA512: Self
pub const ECDSA_NISTP521_SHA512: Self
pub const RSA_PSS_SHA256: Self
pub const RSA_PSS_SHA384: Self
pub const RSA_PSS_SHA512: Self
pub const ED25519: Self
pub const ED448: Self
pub const ML_DSA_44: Self
pub const ML_DSA_65: Self
pub const ML_DSA_87: Self
Trait Implementations§
Source§impl Clone for SignatureScheme
impl Clone for SignatureScheme
Source§fn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
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 SignatureScheme
impl Debug for SignatureScheme
Source§impl From<SignatureScheme> for u16
impl From<SignatureScheme> for u16
Source§fn from(x: SignatureScheme) -> Self
fn from(x: SignatureScheme) -> Self
Converts to this type from the input type.
Source§impl From<u16> for SignatureScheme
impl From<u16> for SignatureScheme
Source§impl Hash for SignatureScheme
impl Hash for SignatureScheme
Source§impl PartialEq for SignatureScheme
impl PartialEq for SignatureScheme
impl Copy for SignatureScheme
impl Eq for SignatureScheme
impl StructuralPartialEq for SignatureScheme
Auto Trait Implementations§
impl Freeze for SignatureScheme
impl RefUnwindSafe for SignatureScheme
impl Send for SignatureScheme
impl Sync for SignatureScheme
impl Unpin for SignatureScheme
impl UnsafeUnpin for SignatureScheme
impl UnwindSafe for SignatureScheme
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