Struct sozu_lib::testing::HttpsListenerConfig  
source · pub struct HttpsListenerConfig {Show 19 fields
    pub address: SocketAddress,
    pub public_address: Option<SocketAddress>,
    pub expect_proxy: bool,
    pub sticky_name: String,
    pub front_timeout: u32,
    pub back_timeout: u32,
    pub connect_timeout: u32,
    pub request_timeout: u32,
    pub active: bool,
    pub versions: Vec<i32>,
    pub cipher_list: Vec<String>,
    pub cipher_suites: Vec<String>,
    pub signature_algorithms: Vec<String>,
    pub groups_list: Vec<String>,
    pub certificate: Option<String>,
    pub certificate_chain: Vec<String>,
    pub key: Option<String>,
    pub send_tls13_tickets: u64,
    pub http_answers: Option<CustomHttpAnswers>,
}Expand description
details of an HTTPS listener
Fields§
§address: SocketAddress§public_address: Option<SocketAddress>§expect_proxy: bool§sticky_name: String§front_timeout: u32client inactive time, in seconds
back_timeout: u32backend server inactive time, in seconds
connect_timeout: u32time to connect to the backend, in seconds
request_timeout: u32max time to send a complete request, in seconds
active: boolwether the listener is actively listening on its socket
versions: Vec<i32>TLS versions
cipher_list: Vec<String>§cipher_suites: Vec<String>§signature_algorithms: Vec<String>§groups_list: Vec<String>§certificate: Option<String>§certificate_chain: Vec<String>§key: Option<String>§send_tls13_tickets: u64Number of TLS 1.3 tickets to send to a client when establishing a connection. The tickets allow the client to resume a session. This protects the client agains session tracking. Defaults to 4.
http_answers: Option<CustomHttpAnswers>Implementations§
source§impl HttpsListenerConfig
 
impl HttpsListenerConfig
sourcepub fn versions(
    &self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<TlsVersion>>
 
pub fn versions( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<TlsVersion>>
Returns an iterator which yields the valid enum values contained in versions.
sourcepub fn push_versions(&mut self, value: TlsVersion)
 
pub fn push_versions(&mut self, value: TlsVersion)
Appends the provided enum value to versions.
sourcepub fn certificate(&self) -> &str
 
pub fn certificate(&self) -> &str
Returns the value of certificate, or the default value if certificate is unset.
Trait Implementations§
source§impl Clone for HttpsListenerConfig
 
impl Clone for HttpsListenerConfig
source§fn clone(&self) -> HttpsListenerConfig
 
fn clone(&self) -> HttpsListenerConfig
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 HttpsListenerConfig
 
impl Debug for HttpsListenerConfig
source§impl Default for HttpsListenerConfig
 
impl Default for HttpsListenerConfig
source§fn default() -> HttpsListenerConfig
 
fn default() -> HttpsListenerConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpsListenerConfig
 
impl<'de> Deserialize<'de> for HttpsListenerConfig
source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<HttpsListenerConfig, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<HttpsListenerConfig, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for HttpsListenerConfig
 
impl Display for HttpsListenerConfig
source§impl Hash for HttpsListenerConfig
 
impl Hash for HttpsListenerConfig
source§impl Message for HttpsListenerConfig
 
impl Message for HttpsListenerConfig
source§fn encoded_len(&self) -> usize
 
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
 
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
 
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
 
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
 
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
 
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
 
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
 
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into 
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
 
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into 
self.source§impl Ord for HttpsListenerConfig
 
impl Ord for HttpsListenerConfig
source§fn cmp(&self, other: &HttpsListenerConfig) -> Ordering
 
fn cmp(&self, other: &HttpsListenerConfig) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HttpsListenerConfig
 
impl PartialEq for HttpsListenerConfig
source§fn eq(&self, other: &HttpsListenerConfig) -> bool
 
fn eq(&self, other: &HttpsListenerConfig) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for HttpsListenerConfig
 
impl PartialOrd for HttpsListenerConfig
source§fn partial_cmp(&self, other: &HttpsListenerConfig) -> Option<Ordering>
 
fn partial_cmp(&self, other: &HttpsListenerConfig) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moresource§impl Serialize for HttpsListenerConfig
 
impl Serialize for HttpsListenerConfig
source§fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for HttpsListenerConfig
impl StructuralPartialEq for HttpsListenerConfig
Auto Trait Implementations§
impl Freeze for HttpsListenerConfig
impl RefUnwindSafe for HttpsListenerConfig
impl Send for HttpsListenerConfig
impl Sync for HttpsListenerConfig
impl Unpin for HttpsListenerConfig
impl UnwindSafe for HttpsListenerConfig
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.