pub enum TlsKeyType {
Curve25519,
EcP224,
EcP256,
EcP384,
EcP521,
Rsa,
}
Expand description
The algorithm type of a key used for TLS
Variants§
Curve25519
A Montgomery curve key over a prime field for the prime number 2^255-19
EcP224
An elliptic-curve key over a prime field for a prime of size 224 bit
EcP256
An elliptic-curve key over a prime field for a prime of size 256 bit
EcP384
An elliptic-curve key over a prime field for a prime of size 384 bit
EcP521
An elliptic-curve key over a prime field for a prime of size 521 bit
Rsa
An RSA key
Trait Implementations§
source§impl Clone for TlsKeyType
impl Clone for TlsKeyType
source§fn clone(&self) -> TlsKeyType
fn clone(&self) -> TlsKeyType
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 TlsKeyType
impl Debug for TlsKeyType
source§impl Default for TlsKeyType
impl Default for TlsKeyType
source§fn default() -> TlsKeyType
fn default() -> TlsKeyType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TlsKeyType
impl<'de> Deserialize<'de> for TlsKeyType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for TlsKeyType
impl Display for TlsKeyType
source§impl<'_derivative_strum> From<&'_derivative_strum TlsKeyType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum TlsKeyType> for &'static str
source§fn from(x: &'_derivative_strum TlsKeyType) -> &'static str
fn from(x: &'_derivative_strum TlsKeyType) -> &'static str
Converts to this type from the input type.
source§impl From<TlsKeyType> for &'static str
impl From<TlsKeyType> for &'static str
source§fn from(x: TlsKeyType) -> &'static str
fn from(x: TlsKeyType) -> &'static str
Converts to this type from the input type.
source§impl From<TlsKeyType> for TlsKeyType
impl From<TlsKeyType> for TlsKeyType
source§fn from(value: TlsKeyType) -> Self
fn from(value: TlsKeyType) -> Self
Converts to this type from the input type.
source§impl FromStr for TlsKeyType
impl FromStr for TlsKeyType
source§impl Hash for TlsKeyType
impl Hash for TlsKeyType
source§impl IntoEnumIterator for TlsKeyType
impl IntoEnumIterator for TlsKeyType
type Iterator = TlsKeyTypeIter
fn iter() -> TlsKeyTypeIter ⓘ
source§impl Ord for TlsKeyType
impl Ord for TlsKeyType
source§fn cmp(&self, other: &TlsKeyType) -> Ordering
fn cmp(&self, other: &TlsKeyType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TlsKeyType
impl PartialEq for TlsKeyType
source§impl PartialOrd for TlsKeyType
impl PartialOrd for TlsKeyType
source§impl Serialize for TlsKeyType
impl Serialize for TlsKeyType
source§impl TryFrom<&str> for TlsKeyType
impl TryFrom<&str> for TlsKeyType
impl Copy for TlsKeyType
impl Eq for TlsKeyType
impl StructuralPartialEq for TlsKeyType
Auto Trait Implementations§
impl Freeze for TlsKeyType
impl RefUnwindSafe for TlsKeyType
impl Send for TlsKeyType
impl Sync for TlsKeyType
impl Unpin for TlsKeyType
impl UnwindSafe for TlsKeyType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)