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

source§

fn clone(&self) -> ProxyConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ProxyConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ProxyConfig

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ProxyConfig

source§

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

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'de> YamlInfo<'de> for ProxyConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Info for T
where T: DeserializeOwned + Serialize + for<'de> YamlInfo<'de>,

source§

type Error = Error

The types of errors that may be thrown by the serialization function(s).
source§

fn to_string( &self, _pretty: bool, ) -> Result<String, InfoError<<T as Info>::Error>>

Serializes this Config to a string. Read more
source§

fn to_writer( &self, writer: impl Write, _pretty: bool, ) -> Result<(), InfoError<<T as Info>::Error>>

Serializes this Config to a reader. Read more
source§

fn from_string(raw: impl AsRef<str>) -> Result<T, InfoError<<T as Info>::Error>>

Deserializes the given string to an instance of ourselves. Read more
source§

fn from_reader(reader: impl Read) -> Result<T, InfoError<<T as Info>::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<(), InfoError<Self::Error>>

Serializes this Config to a file at the given path. Read more
source§

fn from_path(path: impl AsRef<Path>) -> Result<Self, InfoError<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, InfoError<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

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T