Enum iron::Protocol [] [src]

pub enum Protocol {
    Http,
    Https {
        certificate: PathBuf,
        key: PathBuf,
    },
}

Protocol used to serve content. Future versions of Iron may add new protocols to this enum. Thus you should not exhaustively match on its variants.

Variants

Http

Plaintext HTTP/1

Https

HTTP/1 over SSL/TLS

Fields

certificate: PathBuf

Path to SSL certificate file

key: PathBuf

Path to SSL private key file

Methods

impl Protocol
[src]

fn name(&self) -> &'static str

Return the name used for this protocol in a URI's scheme part.

Trait Implementations

impl Clone for Protocol
[src]

fn clone(&self) -> Protocol

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more