pub struct MeshState {
pub neighbors: Vec<Value>,
pub routes: Vec<Value>,
pub gateways: Vec<Value>,
pub role: Option<String>,
pub extra: Extra,
}Expand description
The mesh state projected from the mesh manager.
The neighbor/route/gateway lists stay as open Values because their
entry shapes evolve with the mesh carrier; modeling them here would
freeze a contract the producer still moves.
Fields§
§neighbors: Vec<Value>Directly heard mesh neighbors.
routes: Vec<Value>Known mesh routes.
gateways: Vec<Value>Elected/known cloud gateways.
role: Option<String>This node’s mesh role (e.g. direct, relay, receiver).
extra: ExtraAny extra mesh fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MeshState
impl<'de> Deserialize<'de> for MeshState
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 StructuralPartialEq for MeshState
Auto Trait Implementations§
impl Freeze for MeshState
impl RefUnwindSafe for MeshState
impl Send for MeshState
impl Sync for MeshState
impl Unpin for MeshState
impl UnsafeUnpin for MeshState
impl UnwindSafe for MeshState
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