pub struct DiscoveredHive {
pub id: String,
pub name: String,
pub join_policy: String,
pub peers: u32,
pub units: u32,
}Expand description
The hive a nearby machine advertises in its LAN announcement.
Mirrors the binary’s relay::lan::HiveAd with locally redefined fields,
the way HiveViewSnapshot mirrors its binary-side twin, so the TUI can
render a discovery listing without depending on the relay module.
Fields§
§id: String§name: String§join_policy: Stringinvite, ask or open — the effective policy the machine advertises.
peers: u32Connected peers and knowledge units, as the machine last announced them.
units: u32Trait Implementations§
Source§impl Clone for DiscoveredHive
impl Clone for DiscoveredHive
Source§impl Debug for DiscoveredHive
impl Debug for DiscoveredHive
impl Eq for DiscoveredHive
Source§impl PartialEq for DiscoveredHive
impl PartialEq for DiscoveredHive
impl StructuralPartialEq for DiscoveredHive
Auto Trait Implementations§
impl Freeze for DiscoveredHive
impl RefUnwindSafe for DiscoveredHive
impl Send for DiscoveredHive
impl Sync for DiscoveredHive
impl Unpin for DiscoveredHive
impl UnsafeUnpin for DiscoveredHive
impl UnwindSafe for DiscoveredHive
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,
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.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> ⓘ
Converts
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> ⓘ
Converts
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