pub struct BridgeInfo {
pub name: String,
pub subnet: IpNet,
pub gateway: IpAddr,
pub node_id: String,
}Expand description
Where on a specific node a service’s overlay terminates.
Fields§
§name: StringLinux bridge name (br-svc-<hash>), max 15 chars per IFNAMSIZ.
subnet: IpNetCIDR of the service subnet assigned to this node.
gateway: IpAddrGateway IP within the subnet (first usable address); the bridge’s own L3 address. Containers’ default route points here.
node_id: StringNode identifier (stringified to avoid leaking NodeId type details
across crate boundaries).
Trait Implementations§
Source§impl Clone for BridgeInfo
impl Clone for BridgeInfo
Source§fn clone(&self) -> BridgeInfo
fn clone(&self) -> BridgeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for BridgeInfo
impl ComposeSchema for BridgeInfo
Source§impl Debug for BridgeInfo
impl Debug for BridgeInfo
Source§impl<'de> Deserialize<'de> for BridgeInfo
impl<'de> Deserialize<'de> for BridgeInfo
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
impl Eq for BridgeInfo
Source§impl PartialEq for BridgeInfo
impl PartialEq for BridgeInfo
Source§fn eq(&self, other: &BridgeInfo) -> bool
fn eq(&self, other: &BridgeInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BridgeInfo
impl Serialize for BridgeInfo
impl StructuralPartialEq for BridgeInfo
Auto Trait Implementations§
impl Freeze for BridgeInfo
impl RefUnwindSafe for BridgeInfo
impl Send for BridgeInfo
impl Sync for BridgeInfo
impl Unpin for BridgeInfo
impl UnsafeUnpin for BridgeInfo
impl UnwindSafe for BridgeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.