pub struct DiscoveredMachine {
pub identity: String,
pub addr: String,
pub version: String,
pub hive: Option<DiscoveredHive>,
pub paired: bool,
}Expand description
One machine heard announcing on the LAN.
An announcement is unauthenticated and carries no key, so a listing is informational: it tells the operator a relay is there and which hive it names, and pairing still goes through an invite from that machine.
Fields§
§identity: StringThe announcing machine’s relay identity.
addr: Stringip:port of its relay listener.
version: String§hive: Option<DiscoveredHive>None when the machine has not named its hive.
paired: boolWhether this machine is already paired with us (a PSK is on disk).
Trait Implementations§
Source§impl Clone for DiscoveredMachine
impl Clone for DiscoveredMachine
Source§impl Debug for DiscoveredMachine
impl Debug for DiscoveredMachine
impl Eq for DiscoveredMachine
Source§impl PartialEq for DiscoveredMachine
impl PartialEq for DiscoveredMachine
impl StructuralPartialEq for DiscoveredMachine
Auto Trait Implementations§
impl Freeze for DiscoveredMachine
impl RefUnwindSafe for DiscoveredMachine
impl Send for DiscoveredMachine
impl Sync for DiscoveredMachine
impl Unpin for DiscoveredMachine
impl UnsafeUnpin for DiscoveredMachine
impl UnwindSafe for DiscoveredMachine
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