Struct brane_cfg::node::PrivateService
source · pub struct PrivateService {
pub name: String,
pub address: Address,
pub bind: SocketAddr,
}
Expand description
Defines what we need to know for a private service (i.e., a service that is only reachable from within 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.
Trait Implementations§
source§impl Clone for PrivateService
impl Clone for PrivateService
source§fn clone(&self) -> PrivateService
fn clone(&self) -> PrivateService
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 PrivateService
impl Debug for PrivateService
source§impl<'de> Deserialize<'de> for PrivateService
impl<'de> Deserialize<'de> for PrivateService
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 PrivateService
impl RefUnwindSafe for PrivateService
impl Send for PrivateService
impl Sync for PrivateService
impl Unpin for PrivateService
impl UnwindSafe for PrivateService
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