pub enum SupportedCipherSuite {
Tls13(&'static Tls13CipherSuite),
}展开描述
密码套件 supported by rustls.
This type carries both configuration 并 implementation. Compare with
CipherSuite, which carries solely 密码套件 标识符。
变体§
Tls13(&'static Tls13CipherSuite)
TLS 1.3 密码套件
实现§
Source§impl SupportedCipherSuite
impl SupportedCipherSuite
Sourcepub fn suite(&self) -> CipherSuite
pub fn suite(&self) -> CipherSuite
密码套件’s 标识符
Sourcepub fn tls13(&self) -> Option<&'static Tls13CipherSuite>
pub fn tls13(&self) -> Option<&'static Tls13CipherSuite>
返回内部的 Tls13CipherSuite 针对此套件(如果是 TLS 1.3 套件)。
Sourcepub fn version(&self) -> &'static SupportedProtocolVersion
pub fn version(&self) -> &'static SupportedProtocolVersion
返回此密码套件支持的协议版本。
Sourcepub fn usable_for_signature_algorithm(
&self,
_sig_alg: SignatureAlgorithm,
) -> bool
pub fn usable_for_signature_algorithm( &self, _sig_alg: SignatureAlgorithm, ) -> bool
如果此套件可用于仅提供以下签名的密钥,则返回 true: sig_alg
签名。 对所有 TLS 1.3 套件解析为 true。
Trait 实现§
Source§impl Clone for SupportedCipherSuite
impl Clone for SupportedCipherSuite
Source§fn clone(&self) -> SupportedCipherSuite
fn clone(&self) -> SupportedCipherSuite
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§impl Debug for SupportedCipherSuite
impl Debug for SupportedCipherSuite
Source§impl From<&'static Tls13CipherSuite> for SupportedCipherSuite
impl From<&'static Tls13CipherSuite> for SupportedCipherSuite
Source§fn from(s: &'static Tls13CipherSuite) -> Self
fn from(s: &'static Tls13CipherSuite) -> Self
从输入类型转换为此类型。
Source§impl PartialEq for SupportedCipherSuite
impl PartialEq for SupportedCipherSuite
impl Copy for SupportedCipherSuite
impl StructuralPartialEq for SupportedCipherSuite
自动 Trait 实现§
impl Freeze for SupportedCipherSuite
impl !RefUnwindSafe for SupportedCipherSuite
impl Send for SupportedCipherSuite
impl Sync for SupportedCipherSuite
impl Unpin for SupportedCipherSuite
impl UnsafeUnpin for SupportedCipherSuite
impl !UnwindSafe for SupportedCipherSuite
Blanket 实现§
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 从 an owned value. 更多信息