config: add ServerConfig::transport_config() builder method

This commit is contained in:
Dirkjan Ochtman
2022-02-23 10:09:27 +01:00
committed by Benjamin Saunders
parent c0b50b4a0d
commit d522b6dd63
+6
View File
@@ -467,6 +467,12 @@ impl ServerConfig {
}
}
/// Set a custom [`TransportConfig`]
pub fn transport_config(&mut self, transport: Arc<TransportConfig>) -> &mut Self {
self.transport = transport;
self
}
/// Private key used to authenticate data included in handshake tokens.
pub fn token_key(&mut self, value: Arc<dyn HandshakeTokenKey>) -> &mut Self {
self.token_key = value;