pub struct ManagedNetwork {
pub owner: String,
pub kind: String,
pub name: String,
pub id: String,
pub subnet: String,
pub wg_port: Option<u16>,
pub wg_private_key: Option<String>,
pub wg_public_key: Option<String>,
pub interface: Option<String>,
}Expand description
One host-level network ZLayer is responsible for.
Fields§
§owner: StringLogical owner: OWNER_BASE for the node’s shared overlay, or
service:<name> (see owner_for_service) for a dedicated per-service
network. Used as the upsert key.
kind: StringBackend-specific kind, e.g. "hcn-internal". Lets a reader (and the
uninstall path) know which API to use to delete the object.
name: StringHuman-readable network name (e.g. "zlayer-overlay").
id: StringHost-addressable id — for HCN this is the network GUID string.
subnet: StringCIDR the network was created with (informational / diagnostics).
wg_port: Option<u16>Dedicated-overlay WireGuard listen port (per-service transports only).
wg_private_key: Option<String>Dedicated-overlay WireGuard private key, base64 (per-service only).
Persisted so the device identity survives overlayd restarts (no
per-service republish loop exists, so a stable key avoids a re-peer storm).
wg_public_key: Option<String>Dedicated-overlay public key, base64.
interface: Option<String>Dedicated-overlay interface name.
Trait Implementations§
Source§impl Clone for ManagedNetwork
impl Clone for ManagedNetwork
Source§fn clone(&self) -> ManagedNetwork
fn clone(&self) -> ManagedNetwork
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManagedNetwork
impl Debug for ManagedNetwork
Source§impl<'de> Deserialize<'de> for ManagedNetwork
impl<'de> Deserialize<'de> for ManagedNetwork
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>,
impl Eq for ManagedNetwork
Source§impl PartialEq for ManagedNetwork
impl PartialEq for ManagedNetwork
Source§fn eq(&self, other: &ManagedNetwork) -> bool
fn eq(&self, other: &ManagedNetwork) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ManagedNetwork
impl Serialize for ManagedNetwork
impl StructuralPartialEq for ManagedNetwork
Auto Trait Implementations§
impl Freeze for ManagedNetwork
impl RefUnwindSafe for ManagedNetwork
impl Send for ManagedNetwork
impl Sync for ManagedNetwork
impl Unpin for ManagedNetwork
impl UnsafeUnpin for ManagedNetwork
impl UnwindSafe for ManagedNetwork
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more