pub struct PairingKey {
pub local: NodeId,
pub remote: NodeId,
}Available on crate feature
connect-server only.Expand description
Which pairing: one of this endpoint’s nodes, and the remote node it is paired with.
Both halves, because neither is unique on its own. S2C §Pairing process: “A CEM can
be paired with multiple RMs at the same time” — so a CEM endpoint holds several
pairings with the same local, and a WAN endpoint hosting a household’s battery and
heat pump holds two pairings with the same remote CEM. A store keyed by either half
alone silently overwrites one of them.
Fields§
§local: NodeIdOne of this endpoint’s nodes.
remote: NodeIdThe node it is paired with.
Trait Implementations§
Source§impl Clone for PairingKey
impl Clone for PairingKey
impl Copy for PairingKey
Source§impl Debug for PairingKey
impl Debug for PairingKey
impl Eq for PairingKey
Source§impl Hash for PairingKey
impl Hash for PairingKey
Source§impl Ord for PairingKey
impl Ord for PairingKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PairingKey
impl PartialEq for PairingKey
Source§impl PartialOrd for PairingKey
impl PartialOrd for PairingKey
impl StructuralPartialEq for PairingKey
Auto Trait Implementations§
impl Forget for PairingKey
impl Freeze for PairingKey
impl Move for PairingKey
impl RefUnwindSafe for PairingKey
impl Send for PairingKey
impl Sync for PairingKey
impl Unpin for PairingKey
impl UnsafeUnpin for PairingKey
impl UnwindSafe for PairingKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.