Struct quilkin_xds::listener::Listener
pub struct Listener {Show 29 fields
pub name: String,
pub address: Option<Address>,
pub stat_prefix: String,
pub filter_chains: Vec<FilterChain>,
pub use_original_dst: Option<bool>,
pub default_filter_chain: Option<FilterChain>,
pub per_connection_buffer_limit_bytes: Option<u32>,
pub metadata: Option<Metadata>,
pub deprecated_v1: Option<DeprecatedV1>,
pub drain_type: i32,
pub listener_filters: Vec<ListenerFilter>,
pub listener_filters_timeout: Option<Duration>,
pub continue_on_listener_filters_timeout: bool,
pub transparent: Option<bool>,
pub freebind: Option<bool>,
pub socket_options: Vec<SocketOption>,
pub tcp_fast_open_queue_length: Option<u32>,
pub traffic_direction: i32,
pub udp_listener_config: Option<UdpListenerConfig>,
pub api_listener: Option<ApiListener>,
pub connection_balance_config: Option<ConnectionBalanceConfig>,
pub reuse_port: bool,
pub enable_reuse_port: Option<bool>,
pub access_log: Vec<AccessLog>,
pub tcp_backlog_size: Option<u32>,
pub bind_to_port: Option<bool>,
pub enable_mptcp: bool,
pub ignore_global_conn_limit: bool,
pub listener_specifier: Option<ListenerSpecifier>,
}
Fields§
§name: String
§address: Option<Address>
§stat_prefix: String
§filter_chains: Vec<FilterChain>
§use_original_dst: Option<bool>
§default_filter_chain: Option<FilterChain>
§per_connection_buffer_limit_bytes: Option<u32>
§metadata: Option<Metadata>
§deprecated_v1: Option<DeprecatedV1>
👎Deprecated
§drain_type: i32
§listener_filters: Vec<ListenerFilter>
§listener_filters_timeout: Option<Duration>
§continue_on_listener_filters_timeout: bool
§transparent: Option<bool>
§freebind: Option<bool>
§socket_options: Vec<SocketOption>
§tcp_fast_open_queue_length: Option<u32>
§traffic_direction: i32
§udp_listener_config: Option<UdpListenerConfig>
§api_listener: Option<ApiListener>
§connection_balance_config: Option<ConnectionBalanceConfig>
§reuse_port: bool
👎Deprecated
§enable_reuse_port: Option<bool>
§access_log: Vec<AccessLog>
§tcp_backlog_size: Option<u32>
§bind_to_port: Option<bool>
§enable_mptcp: bool
§ignore_global_conn_limit: bool
§listener_specifier: Option<ListenerSpecifier>
Implementations§
§impl Listener
impl Listener
pub fn drain_type(&self) -> DrainType
pub fn drain_type(&self) -> DrainType
Returns the enum value of drain_type
, or the default if the field is set to an invalid enum value.
pub fn set_drain_type(&mut self, value: DrainType)
pub fn set_drain_type(&mut self, value: DrainType)
Sets drain_type
to the provided enum value.
pub fn traffic_direction(&self) -> TrafficDirection
pub fn traffic_direction(&self) -> TrafficDirection
Returns the enum value of traffic_direction
, or the default if the field is set to an invalid enum value.
pub fn set_traffic_direction(&mut self, value: TrafficDirection)
pub fn set_traffic_direction(&mut self, value: TrafficDirection)
Sets traffic_direction
to the provided enum value.
Trait Implementations§
§impl Message for Listener
impl Message for Listener
§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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
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>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
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>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
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>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for Listener
Auto Trait Implementations§
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnwindSafe for Listener
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request