Struct sozu_lib::network::Backend [−][src]
pub struct Backend {
pub sticky_id: Option<String>,
pub backend_id: String,
pub address: SocketAddr,
pub status: BackendStatus,
pub retry_policy: RetryPolicyWrapper,
pub active_connections: usize,
pub failures: usize,
pub load_balancing_parameters: Option<LoadBalancingParams>,
}Fields
sticky_id: Option<String>
backend_id: String
address: SocketAddr
status: BackendStatus
retry_policy: RetryPolicyWrapper
active_connections: usize
failures: usize
load_balancing_parameters: Option<LoadBalancingParams>
Methods
impl Backend[src]
impl Backendpub fn new(
backend_id: &str,
addr: SocketAddr,
sticky_id: Option<String>,
load_balancing_parameters: Option<LoadBalancingParams>
) -> Backend[src]
pub fn new(
backend_id: &str,
addr: SocketAddr,
sticky_id: Option<String>,
load_balancing_parameters: Option<LoadBalancingParams>
) -> Backendpub fn set_closing(&mut self)[src]
pub fn set_closing(&mut self)pub fn retry_policy(&mut self) -> &mut RetryPolicyWrapper[src]
pub fn retry_policy(&mut self) -> &mut RetryPolicyWrapperpub fn can_open(&self) -> bool[src]
pub fn can_open(&self) -> boolpub fn inc_connections(&mut self) -> Option<usize>[src]
pub fn inc_connections(&mut self) -> Option<usize>pub fn dec_connections(&mut self) -> Option<usize>[src]
pub fn dec_connections(&mut self) -> Option<usize>pub fn try_connect(&mut self) -> Result<TcpStream, ConnectionError>[src]
pub fn try_connect(&mut self) -> Result<TcpStream, ConnectionError>Trait Implementations
impl Debug for Backend[src]
impl Debug for Backendfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Backend[src]
impl PartialEq for Backendfn eq(&self, other: &Backend) -> bool[src]
fn eq(&self, other: &Backend) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Backend) -> bool[src]
fn ne(&self, other: &Backend) -> boolThis method tests for !=.
impl Eq for Backend[src]
impl Eq for Backend