pub struct AddBackend {
pub cluster_id: String,
pub backend_id: String,
pub address: SocketAddress,
pub sticky_id: Option<String>,
pub load_balancing_parameters: Option<LoadBalancingParams>,
pub backup: Option<bool>,
pub unix_path: Option<String>,
}Expand description
add a backend to the cluster cluster_id names, which must exist: the
backend belongs to it and is removed with it
Fields§
§cluster_id: String§backend_id: String§address: SocketAddressthe socket address of the backend
sticky_id: Option<String>§load_balancing_parameters: Option<LoadBalancingParams>§backup: Option<bool>§unix_path: Option<String>when set, sozu dials this UNIX domain stream socket instead of address:
a filesystem path, or @name for a Linux abstract-namespace socket.
address stays the backend’s identity within its cluster (removal,
retry exclusion, sticky and hash routing, events) and is never dialed,
so it must be unique among the cluster’s backends.
Applies to HTTP, HTTPS and TCP clusters. A UDP cluster refuses it, in
the configuration file and in the main process’s state alike: datagrams
cannot travel over a stream socket.
A backend with unix_path is carried by Request.add_unix_backend,
never by Request.add_backend (see there).
Implementations§
Trait Implementations§
Source§impl Clone for AddBackend
impl Clone for AddBackend
Source§impl Debug for AddBackend
impl Debug for AddBackend
Source§impl Default for AddBackend
impl Default for AddBackend
Source§impl<'de> Deserialize<'de> for AddBackend
impl<'de> Deserialize<'de> for AddBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AddBackend
Source§impl From<Backend> for AddBackend
impl From<Backend> for AddBackend
Source§impl Hash for AddBackend
impl Hash for AddBackend
Source§impl Message for AddBackend
impl Message for AddBackend
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Ord for AddBackend
impl Ord for AddBackend
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AddBackend
impl PartialEq for AddBackend
Source§impl PartialOrd for AddBackend
impl PartialOrd for AddBackend
Source§impl Serialize for AddBackend
impl Serialize for AddBackend
impl StructuralPartialEq for AddBackend
Auto Trait Implementations§
impl Freeze for AddBackend
impl RefUnwindSafe for AddBackend
impl Send for AddBackend
impl Sync for AddBackend
impl Unpin for AddBackend
impl UnsafeUnpin for AddBackend
impl UnwindSafe for AddBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.