Trait grpcio::ServerCredentialsFetcher
source · [−]pub trait ServerCredentialsFetcher {
fn fetch(
&self
) -> Result<Option<ServerCredentialsBuilder>, Box<dyn StdError>>;
}
Expand description
Traits to retrieve updated SSL server certificates, private keys, and trusted CAs (for client authentication).
Required Methods
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.