pub struct PeerIdentity {
pub app_id: String,
pub device_id: String,
pub device_name: String,
pub os: String,
pub tailscale_id: String,
}Expand description
Peer identity metadata advertised by a truffle node in its hello envelope.
The primary key for peer identity is device_id, which is stable across
Tailscale re-auths and ephemeral-mode rotations. tailscale_id is an
escape hatch kept so the session layer can correlate the hello with its
Layer 3 peer entry — see the module-level note on the RFC §8 deviation.
Fields§
§app_id: StringThe application namespace. Peers with different app_id close the
connection immediately (RFC §8, close code 4001).
device_id: StringStable per-device ULID.
device_name: StringHuman-readable device name (original form, NOT the slug).
os: StringOperating system identifier (e.g., “darwin”, “linux”, “windows”).
tailscale_id: StringTailscale stable node ID — escape hatch used by the session layer to cross-reference the hello with its Layer 3 peer registry.
Trait Implementations§
Source§impl Clone for PeerIdentity
impl Clone for PeerIdentity
Source§fn clone(&self) -> PeerIdentity
fn clone(&self) -> PeerIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerIdentity
impl Debug for PeerIdentity
Source§impl<'de> Deserialize<'de> for PeerIdentity
impl<'de> Deserialize<'de> for PeerIdentity
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 Eq for PeerIdentity
Source§impl PartialEq for PeerIdentity
impl PartialEq for PeerIdentity
Source§impl Serialize for PeerIdentity
impl Serialize for PeerIdentity
impl StructuralPartialEq for PeerIdentity
Auto Trait Implementations§
impl Freeze for PeerIdentity
impl RefUnwindSafe for PeerIdentity
impl Send for PeerIdentity
impl Sync for PeerIdentity
impl Unpin for PeerIdentity
impl UnsafeUnpin for PeerIdentity
impl UnwindSafe for PeerIdentity
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