pub struct TrustSettings { /* private fields */ }
Expand description

Allows access to the certificates and their trust settings in a given domain.

Implementations§

Create a new TrustSettings for the given domain.

You can call iter() to discover the certificates with settings in this domain.

Then you can call tls_trust_settings_for_certificate() with a given certificate to learn what the aggregate trust setting for that certificate within this domain.

Create an iterator over the certificates with settings in this domain. This produces an empty iterator if there are no such certificates.

Returns the aggregate trust setting for the given certificate.

This tells you whether the certificate should be trusted as a TLS root certificate.

If the certificate has no trust settings in the given domain, the errSecItemNotFound error is returned.

If the certificate has no specific trust settings for TLS in the given domain None is returned.

Otherwise, the specific trust settings are aggregated and returned.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.