Enum solicit::http::HttpScheme [−][src]
pub enum HttpScheme { Http, Https, }
An enum representing the two possible HTTP schemes.
Variants
Http
The variant corresponding to http://
Https
The variant corresponding to https://
Methods
impl HttpScheme
[src]
impl HttpScheme
pub fn as_bytes(&self) -> &'static [u8]
[src]
pub fn as_bytes(&self) -> &'static [u8]
Returns a byte string representing the scheme.
Trait Implementations
impl Debug for HttpScheme
[src]
impl Debug for HttpScheme
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for HttpScheme
[src]
impl Copy for HttpScheme
impl Clone for HttpScheme
[src]
impl Clone for HttpScheme
fn clone(&self) -> HttpScheme
[src]
fn clone(&self) -> HttpScheme
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for HttpScheme
[src]
impl PartialEq for HttpScheme
Auto Trait Implementations
impl Send for HttpScheme
impl Send for HttpScheme
impl Sync for HttpScheme
impl Sync for HttpScheme