pub struct ConsulProxyBuilder { /* private fields */ }
Expand description
Builder for ConsulProxy
.
Implementations§
Source§impl ConsulProxyBuilder
impl ConsulProxyBuilder
pub fn local_service_address(&mut self, value: Option<String>) -> &mut Self
pub fn local_service_port(&mut self, value: Option<i64>) -> &mut Self
pub fn expose(&mut self, value: Option<ConsulExposeConfig>) -> &mut Self
pub fn expose_config(&mut self, value: Option<ConsulExposeConfig>) -> &mut Self
pub fn upstreams(&mut self, value: Vec<ConsulUpstream>) -> &mut Self
Sourcepub fn transparent_proxy(
&mut self,
value: Option<ConsulTransparentProxy>,
) -> &mut Self
pub fn transparent_proxy( &mut self, value: Option<ConsulTransparentProxy>, ) -> &mut Self
TransparentProxy configures the Envoy sidecar to use “transparent proxying”, which creates IP tables rules inside the network namespace to ensure traffic flows thru the Envoy proxy
pub fn config(&mut self, value: HashMap<String, Value>) -> &mut Self
Sourcepub fn build(&self) -> Result<ConsulProxy, ConsulProxyBuilderError>
pub fn build(&self) -> Result<ConsulProxy, ConsulProxyBuilderError>
Trait Implementations§
Source§impl Clone for ConsulProxyBuilder
impl Clone for ConsulProxyBuilder
Source§fn clone(&self) -> ConsulProxyBuilder
fn clone(&self) -> ConsulProxyBuilder
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 moreAuto Trait Implementations§
impl Freeze for ConsulProxyBuilder
impl RefUnwindSafe for ConsulProxyBuilder
impl Send for ConsulProxyBuilder
impl Sync for ConsulProxyBuilder
impl Unpin for ConsulProxyBuilder
impl UnwindSafe for ConsulProxyBuilder
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