pub enum TLSConfig {
FILE {
certificate_path: String,
private_key_path: String,
},
DATA {
certificate: Vec<u8>,
private_key: Vec<u8>,
},
NONE,
}
Expand description
TLSConfig is used to specify TLS options. FILE is for specifying a path to a certificate and private key. DATA is for passing the certificate and private key bytes directly. NONE is for when you are not using TLS on the listening/downstream side of the relay.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TLSConfig
impl RefUnwindSafe for TLSConfig
impl Send for TLSConfig
impl Sync for TLSConfig
impl Unpin for TLSConfig
impl UnwindSafe for TLSConfig
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