Struct brane_cfg::proxy::ProxyConfig
source · pub struct ProxyConfig {
pub outgoing_range: RangeInclusive<u16>,
pub incoming: HashMap<u16, Address>,
pub forward: Option<ForwardConfig>,
}
Expand description
Defines the file that can be used to define additional proxy rules.
Fields§
§outgoing_range: RangeInclusive<u16>
Defines the range of outgoing ports we may assign to services.
incoming: HashMap<u16, Address>
Defines a list of forwarding ports for outside incoming connections. Maps incoming port to outgoing address.
Note: these will also have to be opened in Docker, obviously, but branectl
can do this for you.
forward: Option<ForwardConfig>
Whether we have to forward our traffic through some external proxy.
Trait Implementations§
source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
source§fn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
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 ProxyConfig
impl Debug for ProxyConfig
source§impl Default for ProxyConfig
impl Default for ProxyConfig
source§impl<'de> Deserialize<'de> for ProxyConfig
impl<'de> Deserialize<'de> for ProxyConfig
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 Serialize for ProxyConfig
impl Serialize for ProxyConfig
impl<'de> YamlConfig<'de> for ProxyConfig
Auto Trait Implementations§
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnwindSafe for ProxyConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§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> Config for Twhere
T: DeserializeOwned + Serialize + for<'de> YamlConfig<'de>,
impl<T> Config for Twhere T: DeserializeOwned + Serialize + for<'de> YamlConfig<'de>,
source§fn to_string(
&self,
_pretty: bool
) -> Result<String, ConfigError<<T as Config>::Error>>
fn to_string( &self, _pretty: bool ) -> Result<String, ConfigError<<T as Config>::Error>>
Serializes this Config to a string. Read more
source§fn to_writer(
&self,
writer: impl Write,
_pretty: bool
) -> Result<(), ConfigError<<T as Config>::Error>>
fn to_writer( &self, writer: impl Write, _pretty: bool ) -> Result<(), ConfigError<<T as Config>::Error>>
Serializes this Config to a reader. Read more
source§fn from_string(
raw: impl AsRef<str>
) -> Result<T, ConfigError<<T as Config>::Error>>
fn from_string( raw: impl AsRef<str> ) -> Result<T, ConfigError<<T as Config>::Error>>
Deserializes the given string to an instance of ourselves. Read more
source§fn from_reader(
reader: impl Read
) -> Result<T, ConfigError<<T as Config>::Error>>
fn from_reader( reader: impl Read ) -> Result<T, ConfigError<<T as Config>::Error>>
Deserializes the contents of the given reader to an instance of ourselves. Read more
source§fn to_path(
&self,
path: impl AsRef<Path>
) -> Result<(), ConfigError<Self::Error>>
fn to_path( &self, path: impl AsRef<Path> ) -> Result<(), ConfigError<Self::Error>>
Serializes this Config to a file at the given path. Read more
source§fn from_path(path: impl AsRef<Path>) -> Result<Self, ConfigError<Self::Error>>
fn from_path(path: impl AsRef<Path>) -> Result<Self, ConfigError<Self::Error>>
Deserializes this Config from the file at the given path. Read more
source§fn from_path_async<'async_trait>(
path: impl 'async_trait + Send + AsRef<Path>
) -> Pin<Box<dyn Future<Output = Result<Self, ConfigError<Self::Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn from_path_async<'async_trait>( path: impl 'async_trait + Send + AsRef<Path> ) -> Pin<Box<dyn Future<Output = Result<Self, ConfigError<Self::Error>>> + Send + 'async_trait>>where Self: Send + 'async_trait,
Deserializes this Config from the file at the given path, with the reading part done asynchronously. Read more
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