#[non_exhaustive]pub enum SignatureScheme {
Show 14 variants
RSA_PKCS1_SHA1,
ECDSA_SHA1_Legacy,
RSA_PKCS1_SHA256,
ECDSA_NISTP256_SHA256,
RSA_PKCS1_SHA384,
ECDSA_NISTP384_SHA384,
RSA_PKCS1_SHA512,
ECDSA_NISTP521_SHA512,
RSA_PSS_SHA256,
RSA_PSS_SHA384,
RSA_PSS_SHA512,
ED25519,
ED448,
Unknown(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.
The Unknown
item is used when processing unrecognised ordinals.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RSA_PKCS1_SHA1
ECDSA_SHA1_Legacy
RSA_PKCS1_SHA256
ECDSA_NISTP256_SHA256
RSA_PKCS1_SHA384
ECDSA_NISTP384_SHA384
RSA_PKCS1_SHA512
ECDSA_NISTP521_SHA512
RSA_PSS_SHA256
RSA_PSS_SHA384
RSA_PSS_SHA512
ED25519
ED448
Unknown(u16)
Implementations§
Trait Implementations§
Source§impl Clone for SignatureScheme
impl Clone for SignatureScheme
Source§fn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
Returns a copy 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(value: SignatureScheme) -> Self
fn from(value: SignatureScheme) -> Self
Converts to this type from the input type.
Source§impl From<u16> for SignatureScheme
impl From<u16> 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
RSA_PKCS1_SHA1
: 0 bytesECDSA_SHA1_Legacy
: 0 bytesRSA_PKCS1_SHA256
: 0 bytesECDSA_NISTP256_SHA256
: 0 bytesRSA_PKCS1_SHA384
: 0 bytesECDSA_NISTP384_SHA384
: 0 bytesRSA_PKCS1_SHA512
: 0 bytesECDSA_NISTP521_SHA512
: 0 bytesRSA_PSS_SHA256
: 0 bytesRSA_PSS_SHA384
: 0 bytesRSA_PSS_SHA512
: 0 bytesED25519
: 0 bytesED448
: 0 bytesUnknown
: 2 bytes