pub enum HttpsConfig {
Http,
Https {
resolver: Arc<dyn ResolvesServerCert>,
},
}
Variants§
Implementations§
Source§impl HttpsConfig
impl HttpsConfig
pub fn from_resolver<R: ResolvesServerCert + 'static>(resolver: R) -> Self
pub fn http() -> Self
Auto Trait Implementations§
impl Freeze for HttpsConfig
impl !RefUnwindSafe for HttpsConfig
impl Send for HttpsConfig
impl Sync for HttpsConfig
impl Unpin for HttpsConfig
impl !UnwindSafe for HttpsConfig
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