Enum SignatureScheme
#[repr(u16)]pub enum SignatureScheme {
ECDSA_SECP256R1_SHA256 = 1_027,
ECDSA_SECP384R1_SHA384 = 1_283,
ECDSA_SECP521R1_SHA512 = 1_539,
ED25519 = 2_055,
ED448 = 2_056,
}
Expand description
SignatureScheme according to IANA TLS parameters
Variants§
ECDSA_SECP256R1_SHA256 = 1_027
ECDSA_SECP256R1_SHA256
ECDSA_SECP384R1_SHA384 = 1_283
ECDSA_SECP384R1_SHA384
ECDSA_SECP521R1_SHA512 = 1_539
ECDSA_SECP521R1_SHA512
ED25519 = 2_055
ED25519
ED448 = 2_056
ED448
Trait Implementations§
§impl Clone for SignatureScheme
impl Clone for SignatureScheme
§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 more§impl Debug for SignatureScheme
impl Debug for SignatureScheme
§impl<'de> Deserialize<'de> for SignatureScheme
impl<'de> Deserialize<'de> for SignatureScheme
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignatureScheme, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignatureScheme, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Deserialize for SignatureScheme
impl Deserialize for SignatureScheme
§fn tls_deserialize<R>(bytes: &mut R) -> Result<SignatureScheme, Error>where
R: Read,
fn tls_deserialize<R>(bytes: &mut R) -> Result<SignatureScheme, Error>where
R: Read,
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read more§impl DeserializeBytes for SignatureScheme
impl DeserializeBytes for SignatureScheme
§fn tls_deserialize_bytes(
bytes: &[u8],
) -> Result<(SignatureScheme, &[u8]), Error>
fn tls_deserialize_bytes( bytes: &[u8], ) -> Result<(SignatureScheme, &[u8]), Error>
This function deserializes the
bytes
from the provided a &[u8]
and returns the populated struct, as well as the remaining slice. Read more§impl From<Ciphersuite> for SignatureScheme
impl From<Ciphersuite> for SignatureScheme
§fn from(ciphersuite_name: Ciphersuite) -> SignatureScheme
fn from(ciphersuite_name: Ciphersuite) -> SignatureScheme
Converts to this type from the input type.
§impl Hash for SignatureScheme
impl Hash for SignatureScheme
§impl PartialEq for SignatureScheme
impl PartialEq for SignatureScheme
§impl Serialize for &SignatureScheme
impl Serialize for &SignatureScheme
§impl Serialize for SignatureScheme
impl Serialize for SignatureScheme
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl Serialize for SignatureScheme
impl Serialize for SignatureScheme
§impl Size for &SignatureScheme
impl Size for &SignatureScheme
fn tls_serialized_len(&self) -> usize
§impl Size for SignatureScheme
impl Size for SignatureScheme
fn tls_serialized_len(&self) -> usize
§impl TryFrom<u16> for SignatureScheme
impl TryFrom<u16> 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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more