Trait grpcio::ServerCredentialsFetcher[][src]

pub trait ServerCredentialsFetcher {
    fn fetch(
        &self
    ) -> Result<Option<ServerCredentialsBuilder>, Box<dyn StdError>>; }

Traits to retrieve updated SSL server certificates, private keys, and trusted CAs (for client authentication).

Required methods

fn fetch(&self) -> Result<Option<ServerCredentialsBuilder>, Box<dyn StdError>>[src]

Retrieves updated credentials.

The method will be called during server initialization and every time a new connection is about to be accepted. When returning None or error, gRPC will continue to use the previous certificates returned by the method. If no valid credentials is returned during initialization, the server will fail to start.

Loading content...

Implementors

Loading content...