pub enum HttpProtocol {
Http,
Https,
}
Expand description
The protocol extracted from window.location
Variants§
Trait Implementations§
source§impl Clone for HttpProtocol
impl Clone for HttpProtocol
source§fn clone(&self) -> HttpProtocol
fn clone(&self) -> HttpProtocol
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 moresource§impl Debug for HttpProtocol
impl Debug for HttpProtocol
source§impl Into<WebSocketProtocol> for HttpProtocol
impl Into<WebSocketProtocol> for HttpProtocol
source§fn into(self) -> WebSocketProtocol
fn into(self) -> WebSocketProtocol
Converts this type into the (usually inferred) input type.
source§impl PartialEq for HttpProtocol
impl PartialEq for HttpProtocol
source§fn eq(&self, other: &HttpProtocol) -> bool
fn eq(&self, other: &HttpProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToString for HttpProtocol
impl ToString for HttpProtocol
impl Copy for HttpProtocol
impl Eq for HttpProtocol
impl StructuralPartialEq for HttpProtocol
Auto Trait Implementations§
impl Freeze for HttpProtocol
impl RefUnwindSafe for HttpProtocol
impl Send for HttpProtocol
impl Sync for HttpProtocol
impl Unpin for HttpProtocol
impl UnwindSafe for HttpProtocol
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)