Struct wick_config::config::HttpConfig
source · pub struct HttpConfig { /* private fields */ }Expand description
Configuration for HTTP/S servers.
Implementations§
source§impl HttpConfig
impl HttpConfig
pub fn enabled(&self) -> bool
pub fn enabled_mut(&mut self) -> &mut bool
pub fn port(&self) -> Option<u16>
pub fn port_mut(&mut self) -> &mut Option<u16>
pub fn address(&self) -> Option<&Ipv4Addr>
pub fn address_mut(&mut self) -> &mut Option<Ipv4Addr>
pub fn pem(&self) -> Option<&AssetReference>
pub fn pem_mut(&mut self) -> &mut Option<AssetReference>
pub fn key(&self) -> Option<&AssetReference>
pub fn key_mut(&mut self) -> &mut Option<AssetReference>
pub fn ca(&self) -> Option<&AssetReference>
pub fn ca_mut(&mut self) -> &mut Option<AssetReference>
Trait Implementations§
source§impl Clone for HttpConfig
impl Clone for HttpConfig
source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
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 HttpConfig
impl Debug for HttpConfig
source§impl Default for HttpConfig
impl Default for HttpConfig
source§fn default() -> HttpConfig
fn default() -> HttpConfig
Returns the “default value” for a type. Read more
source§impl Serialize for HttpConfig
impl Serialize for HttpConfig
source§impl TryFrom<HttpConfig> for HttpConfig
impl TryFrom<HttpConfig> for HttpConfig
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<HttpConfig> for HttpConfig
impl TryFrom<HttpConfig> for HttpConfig
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<HttpConfig> for HttpConfig
impl TryFrom<HttpConfig> for HttpConfig
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl !UnwindSafe for HttpConfig
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