pub enum Protocols {
ALL,
HTTP1,
HTTP2,
}
Expand description
Defines protocols that will be used in TLS configuration.
Variants§
ALL
All protocols enabled by features (HTTP/1.0, HTTP/1.1, HTTP/2).
HTTP1
Available on crate feature
hyper-h1
only.Only HTTP/1.0 or HTTP/1.1 if enabled by hyper-h1.
HTTP2
Available on crate feature
hyper-h2
only.Only HTTP/2 if enabled by hyper-h2.
Trait Implementations§
impl Copy for Protocols
impl Eq for Protocols
impl StructuralPartialEq for Protocols
Auto Trait Implementations§
impl Freeze for Protocols
impl RefUnwindSafe for Protocols
impl Send for Protocols
impl Sync for Protocols
impl Unpin for Protocols
impl UnwindSafe for Protocols
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.