Enum solicit::http::HttpScheme [−][src]
pub enum HttpScheme {
Http,
Https,
}An enum representing the two possible HTTP schemes.
Variants
HttpThe variant corresponding to http://
HttpsThe variant corresponding to https://
Methods
impl HttpScheme[src]
impl HttpSchemepub 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 HttpSchemefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for HttpScheme[src]
impl Copy for HttpSchemeimpl Clone for HttpScheme[src]
impl Clone for HttpSchemefn clone(&self) -> HttpScheme[src]
fn clone(&self) -> HttpSchemeReturns 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 HttpSchemeAuto Trait Implementations
impl Send for HttpScheme
impl Send for HttpSchemeimpl Sync for HttpScheme
impl Sync for HttpScheme