Struct brane_cfg::node::PublicService
source · pub struct PublicService {
pub name: String,
pub address: Address,
pub bind: SocketAddr,
pub external_address: Address,
}
Expand description
Defines what we need to know for a public service (i.e., a service that is reachable from outside the Docker network, i.e., the node).
Fields§
§name: String
Defines the name of the Docker container.
address: Address
Defines how the services on the same node can reach this service (which can be optimized due to the same-Docker-network property).
bind: SocketAddr
Defines the port (and hostname) to which the Docker container will bind itself. This is also the port on which the service will be externally reachable.
external_address: Address
Defines how the services on other nodes can reach this service.
Trait Implementations§
source§impl Clone for PublicService
impl Clone for PublicService
source§fn clone(&self) -> PublicService
fn clone(&self) -> PublicService
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 PublicService
impl Debug for PublicService
source§impl<'de> Deserialize<'de> for PublicService
impl<'de> Deserialize<'de> for PublicService
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
Auto Trait Implementations§
impl Freeze for PublicService
impl RefUnwindSafe for PublicService
impl Send for PublicService
impl Sync for PublicService
impl Unpin for PublicService
impl UnwindSafe for PublicService
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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