Enum sozu_command_lib::config::ClusterConfig
source · pub enum ClusterConfig {
Http(HttpClusterConfig),
Tcp(TcpClusterConfig),
}
Variants§
Http(HttpClusterConfig)
Tcp(TcpClusterConfig)
Implementations§
source§impl ClusterConfig
impl ClusterConfig
pub fn generate_requests(&self) -> Result<Vec<Request>, ConfigError>
Trait Implementations§
source§impl Clone for ClusterConfig
impl Clone for ClusterConfig
source§fn clone(&self) -> ClusterConfig
fn clone(&self) -> ClusterConfig
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 ClusterConfig
impl Debug for ClusterConfig
source§impl<'de> Deserialize<'de> for ClusterConfig
impl<'de> Deserialize<'de> for ClusterConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ClusterConfig
impl Hash for ClusterConfig
source§impl PartialEq for ClusterConfig
impl PartialEq for ClusterConfig
source§fn eq(&self, other: &ClusterConfig) -> bool
fn eq(&self, other: &ClusterConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ClusterConfig
impl Serialize for ClusterConfig
impl Eq for ClusterConfig
impl StructuralPartialEq for ClusterConfig
Auto Trait Implementations§
impl Freeze for ClusterConfig
impl RefUnwindSafe for ClusterConfig
impl Send for ClusterConfig
impl Sync for ClusterConfig
impl Unpin for ClusterConfig
impl UnwindSafe for ClusterConfig
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<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.