pub struct SelfIdentity {
pub node_id: Option<String>,
pub numeric_id: Option<String>,
pub addresses: Vec<String>,
pub dns_name: Option<String>,
}Expand description
The identity of the node this server runs on, read from status at startup.
Used to recognise a control-plane operation aimed at ourselves, which is the difference between deleting a device and severing the connection the caller is talking over.
Fields§
§node_id: Option<String>The node id, which is the identifier the control plane prefers:
status --json reports it as Self.ID, and it looks like
n1234567CNTRL.
numeric_id: Option<String>The numeric device id, which the control plane accepts for the same device.
Not in status — the local node has never been told it — so it is
resolved from the control plane when there is a credential, and stays
None when there is not. A caller naming this node by its numeric id
in a session with no credential is therefore not recognised, which is
the same blind spot as a session with no local surface and is handled
the same way: the call is treated as ordinary.
addresses: Vec<String>Tailscale addresses assigned to this node.
dns_name: Option<String>The node’s MagicDNS name.
Implementations§
Trait Implementations§
Source§impl Clone for SelfIdentity
impl Clone for SelfIdentity
Source§impl Debug for SelfIdentity
impl Debug for SelfIdentity
Source§impl Default for SelfIdentity
impl Default for SelfIdentity
impl Eq for SelfIdentity
Source§impl From<SelfIdentity> for Identity
impl From<SelfIdentity> for Identity
Source§fn from(known: SelfIdentity) -> Self
fn from(known: SelfIdentity) -> Self
Source§impl PartialEq for SelfIdentity
impl PartialEq for SelfIdentity
impl StructuralPartialEq for SelfIdentity
Auto Trait Implementations§
impl Freeze for SelfIdentity
impl RefUnwindSafe for SelfIdentity
impl Send for SelfIdentity
impl Sync for SelfIdentity
impl Unpin for SelfIdentity
impl UnsafeUnpin for SelfIdentity
impl UnwindSafe for SelfIdentity
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
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§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
key and return true if they are equal.