pub enum ConfigTls {
AsFile {
cert_file: PathBuf,
key_file: PathBuf,
},
AsBytes {
certs: Vec<u8>,
key: Vec<u8>,
},
Dynamic(RawTlsConfig),
}
Variants§
AsFile
Fields
The server will read the certificate chain and private key from the specified file.
AsBytes
The server will use the certificate chain and private key from the specified bytes.
Dynamic(RawTlsConfig)
The dropshot consumer will provide TLS configuration dynamically (that is not expressible in a static config file)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigTls
impl Send for ConfigTls
impl Sync for ConfigTls
impl Unpin for ConfigTls
impl !UnwindSafe for ConfigTls
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more