CertificateClient

Trait CertificateClient 

Source
pub trait CertificateClient: PollClient {
    // Provided methods
    fn delete_certificate(
        &mut self,
        id: CertId,
    ) -> ClientResult<'_, DeleteCertificate, Self> { ... }
    fn read_certificate(
        &mut self,
        id: CertId,
    ) -> ClientResult<'_, ReadCertificate, Self> { ... }
    fn write_certificate(
        &mut self,
        location: Location,
        der: &[u8],
    ) -> ClientResult<'_, WriteCertificate, Self> { ... }
}
Available on crate feature certificate-client only.
Expand description

Read/Write + Delete certificates

Provided Methods§

Source

fn delete_certificate( &mut self, id: CertId, ) -> ClientResult<'_, DeleteCertificate, Self>

Source

fn read_certificate( &mut self, id: CertId, ) -> ClientResult<'_, ReadCertificate, Self>

Source

fn write_certificate( &mut self, location: Location, der: &[u8], ) -> ClientResult<'_, WriteCertificate, Self>

Currently, this writes the cert (assumed but not verified to be DER) as-is. It might make sense to add attributes (such as “deletable”). (On the other hand, the attn CA certs are not directly accessible to clients, and generated attn certs can be regenerated).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§