pub enum EndpointProtocol {
Http1,
Http2,
Http12,
Generic,
}
Variants§
Implementations§
Source§impl EndpointProtocol
impl EndpointProtocol
pub fn supports_http1(&self) -> bool
pub fn supports_http2(&self) -> bool
pub fn supports_http1_only(&self) -> bool
pub fn supports_http2_only(&self) -> bool
pub fn with_http_support(_http1: bool, _http2: bool) -> Self
Trait Implementations§
Source§impl Clone for EndpointProtocol
impl Clone for EndpointProtocol
Source§fn clone(&self) -> EndpointProtocol
fn clone(&self) -> EndpointProtocol
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for EndpointProtocol
impl RefUnwindSafe for EndpointProtocol
impl Send for EndpointProtocol
impl Sync for EndpointProtocol
impl Unpin for EndpointProtocol
impl UnwindSafe for EndpointProtocol
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