Struct sozu_command_lib::config::Listener [−][src]
pub struct Listener { pub address: SocketAddr, pub protocol: FileListenerProtocolConfig, pub public_address: Option<String>, pub answer_404: Option<String>, pub answer_503: Option<String>, pub cipher_list: Option<String>, pub rustls_cipher_list: Option<Vec<String>>, pub tls_versions: Option<Vec<TlsVersion>>, pub expect_proxy: Option<bool>, pub sticky_name: String, }
Fields
address: SocketAddr
protocol: FileListenerProtocolConfig
public_address: Option<String>
answer_404: Option<String>
answer_503: Option<String>
cipher_list: Option<String>
rustls_cipher_list: Option<Vec<String>>
tls_versions: Option<Vec<TlsVersion>>
expect_proxy: Option<bool>
sticky_name: String
Methods
impl Listener
[src]
impl Listener
pub fn new(
address: SocketAddr,
protocol: FileListenerProtocolConfig
) -> Listener
[src]
pub fn new(
address: SocketAddr,
protocol: FileListenerProtocolConfig
) -> Listener
pub fn to_http(&self) -> Option<HttpListener>
[src]
pub fn to_http(&self) -> Option<HttpListener>
pub fn to_tls(&self) -> Option<HttpsListener>
[src]
pub fn to_tls(&self) -> Option<HttpsListener>
pub fn to_tcp(&self) -> Option<TcpListener>
[src]
pub fn to_tcp(&self) -> Option<TcpListener>
Trait Implementations
impl Debug for Listener
[src]
impl Debug for Listener
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 Clone for Listener
[src]
impl Clone for Listener
fn clone(&self) -> Listener
[src]
fn clone(&self) -> Listener
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 Listener
[src]
impl PartialEq for Listener
fn eq(&self, other: &Listener) -> bool
[src]
fn eq(&self, other: &Listener) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Listener) -> bool
[src]
fn ne(&self, other: &Listener) -> bool
This method tests for !=
.
impl Eq for Listener
[src]
impl Eq for Listener
impl Hash for Listener
[src]
impl Hash for Listener