跳到主要内容

CertifiedKey

搜索

结构体 CertifiedKey 

Source
pub struct CertifiedKey<S: SigningKey> {
    pub cert: Certificate,
    pub signing_key: S,
}
展开描述

一份已颁发的证书,连同其 subject 密钥对。

字段§

§cert: Certificate

已签发的证书。

§signing_key: S

该证书的主体签名密钥。

Trait 实现§

Source§

impl<S: PartialEq + SigningKey> PartialEq for CertifiedKey<S>

Source§

fn eq(&self, other: &CertifiedKey<S>) -> bool

测试 selfother 值是否相等,供 == 运算符使用。
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

测试 != 运算符。默认实现几乎总是够用,除非有非常充分的理由,否则不应被覆盖。
Source§

impl<S: Eq + SigningKey> Eq for CertifiedKey<S>

Source§

impl<S: SigningKey> StructuralPartialEq for CertifiedKey<S>

自动 Trait 实现§

§

impl<S> Freeze for CertifiedKey<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for CertifiedKey<S>
where S: RefUnwindSafe,

§

impl<S> Send for CertifiedKey<S>
where S: Send,

§

impl<S> Sync for CertifiedKey<S>
where S: Sync,

§

impl<S> Unpin for CertifiedKey<S>
where S: Unpin,

§

impl<S> UnsafeUnpin for CertifiedKey<S>
where S: UnsafeUnpin,

§

impl<S> UnwindSafe for CertifiedKey<S>
where S: UnwindSafe,

Blanket 实现§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. 更多信息
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. 更多信息
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. 更多信息
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

原样返回传入的参数。

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

调用 U::from(self)

That is, this conversion is whatever the implementation of From<T> for U 的实现方式。

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

转换出错时返回的类型。
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

执行转换。
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

转换出错时返回的类型。
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

执行转换。