Struct hyper_simple_server::ConfigurationArguments[][src]

pub struct ConfigurationArguments {
    pub endpoint_socket_address: Option<String>,
    pub endpoint_socket_address_help: String,
    pub endpoint_descriptor: Option<u32>,
    pub endpoint_descriptor_help: String,
    pub endpoint_protocol_http1: Option<bool>,
    pub endpoint_protocol_http1_help: String,
    pub endpoint_protocol_http2: Option<bool>,
    pub endpoint_protocol_http2_help: String,
    pub endpoint_insecure: Option<bool>,
    pub endpoint_insecure_help: String,
    pub endpoint_rust_tls_certificate_pem_path: Option<String>,
    pub endpoint_rust_tls_certificate_pem_path_help: String,
    pub endpoint_rust_tls_certificate_fallback: Option<RustTlsCertificate>,
    pub endpoint_native_tls_certificate_pkcs12_path: Option<String>,
    pub endpoint_native_tls_certificate_pkcs12_password: Option<String>,
    pub endpoint_native_tls_certificate_pkcs12_path_help: String,
    pub endpoint_native_tls_certificate_fallback: Option<NativeTlsCertificate>,
}

Fields

endpoint_socket_address: Option<String>endpoint_socket_address_help: Stringendpoint_descriptor: Option<u32>endpoint_descriptor_help: Stringendpoint_protocol_http1: Option<bool>endpoint_protocol_http1_help: Stringendpoint_protocol_http2: Option<bool>endpoint_protocol_http2_help: Stringendpoint_insecure: Option<bool>endpoint_insecure_help: Stringendpoint_rust_tls_certificate_pem_path: Option<String>endpoint_rust_tls_certificate_pem_path_help: Stringendpoint_rust_tls_certificate_fallback: Option<RustTlsCertificate>endpoint_native_tls_certificate_pkcs12_path: Option<String>endpoint_native_tls_certificate_pkcs12_password: Option<String>endpoint_native_tls_certificate_pkcs12_path_help: Stringendpoint_native_tls_certificate_fallback: Option<NativeTlsCertificate>

Implementations

impl ConfigurationArguments[src]

pub fn with_defaults(_configuration: &Configuration) -> Self[src]

pub fn prepare<'a>(&'a mut self, _parser: &mut ArgumentParser<'a>)[src]

pub fn update(&self, _configuration: &mut Configuration) -> ServerResult[src]

pub fn parse(&mut self) -> ServerResult[src]

pub fn parse_and_update(_configuration: &mut Configuration) -> ServerResult[src]

Trait Implementations

impl Default for ConfigurationArguments[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.